Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Section


Column
width30%600px


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: Add watchers depending on the value of a custom field

I want to add a watcher to a ticket upon creation depending on another custom field value. For example I see in our customer CF the value "BT" I want to set "bt user" as watcher.

It will work with a comma separated list of user names and groups names. (I will include support for project roles in version 2.1.19 of the plugin). Anyway, you can use post-function Set a field as a function of other fields selecting virtual field "Watchers" as target field, and using prefix '+' to indicate that the users must be added to current watchers, and avoid them to replace current watchers.

I show you how to do it in the following screenshot:

Text to be parsed is:

(Apple)+ apple_user_name

(BT)+ bT_user_name

(Google)+ google_user_name

(Microsoft)+ microsoft_user_name

(All)+ apple_user_name, bt_user_name, google_user_name, microsoft_user_name



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 = "custom-field"