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

  • Set a field as a function of other fields
  • Virtual field "New watchers": writing into this field a comma separated list of user namesgroup names or project roles names, will add new watchers to the issue.

  • Virtual field "Security level": used to check the current Security level of current issue.



Example: Add watcher depending on security level

We want to add one or more watchers to current issue depending on its Security Level.

Let's suppose we have want to implement the following behavior:

  • If security level is "Internal" then add user "konrad.zuse" as watcher.

  • If security level is "Executive" then add users "ada.lovelace" and "charles.babbage" as watchers.

  • If security level is "Manager" then add user "john.neumann" as watcher.

  • If security level is "Classified" then add user "alan.turing", and all users in project role "Classified Observers" as watchers.

We will add post-function Set a field as a function of other fields to transition "Create Issue" with the following configuration:


Setting rules used in this example are:

(Internal)konrad.zuse
(Executive)ada.lovelace
(Manager)john.neumann
(Classified)alan.turing, Classified Observers


Once configured, transition "Create Issue" 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"