Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from this space and version 2.7.0


Section


Column
width600px


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: Parse

email

Email adresses to watchers list

In this example, a comma separated list of email addresses of Jira users will be comma separated are entered in a text custom field. By evaluating these addresses, the specific Jira users should be added to the watchers list of the created on issue creation.

For this the post function Copy parsed text to a field is needed.

Image Removed

This can be done using the Update issue fields post function:

  • Select the New Watchers virtual field and confirm by clicking Add
  • Switch Value type to Parsed text (advanced mode)
  • Add Text to be parsed
is
  • :
 
  • toString(textOnStringList(toStringList(%{
10400
  • nnnnn}, ", "), toString(usersWithEmail(^%))))

Image Added

Note that:

  • Before setting up the post function, a custom text field is needed for storing the email addresses.
  • %{10400} is field code for a text custom field where the email addresses get stored. In your instance this code might be differentnnnnn} has to be replaced with the field code of this custom field containing the email addresses
  • Like always, post functions within the Create transition have to be placed after the Creates the issue originally one


Once configured, the transition will look like this:

Image Removed

When now creating a new issue and adding the email addresses to the custom field when the create issue screen, they will be added as watchers.

(info) When adding the Jira usernames to another custom field a JWT text custom field can be used instead. The code line won't change and a post function is not needed.Image Added



Other examples of that function

Incoming Links
pageCopy parsed text to a field
labelsexample



Related Usage Examples

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