Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Section
Column
width30%
Panel
borderColor#333f48
bgColor#FFFFFF
titleColor#eeeeee
borderWidth1
titleBGColor#333f48
borderStylesolid
titleOn this page

Table of Contents
maxLevel1

Column



Features used to implement the example



Example: Set security level depending on reporter or creator

I want to set the Issue Security in the workflow based on the user who creates the issue.

Example:

  • User belongs to "Group A" set "Security Level A".
  • User belongs to "Group B" set "Security Level B".

This behavior can be implemented using post-function Set a field as a function of other fields with the following configuration:


Text to be parsed is:

[isInGroup(%{00006}, "Group A")]Security Level A
[isInGroup(%{00006}, "Group B")]Security Level B


Note that:

  • %{00006} is field code for "Reporter"
  • You could also use field Creator (field code %{00148}) instead, which is the actual user who created the issue, Field Reporter can be edited, while Creator can't
  • You could use function "isInRole(string user_name,string role_namestring project_key) : boolean" to make it dependent on project role. You should use field Project Key (field code %{00018}) in the third argument


Once configured, the transition will look like this:




Other examples of that function

Incoming Links
pageSet a field as a function of other fields
labelsexample

Related Usage Examples

Content by Label
showSpacefalse
cqllabel = "example" and label = "post-function"