Page History
Section | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 70%
|
Example: Parse Email adresses to watchers list
In this example email adresses , a comma separated list of email addresses of Jira users will be comma seperated are entered in a text custom field. By evaluating these adresses 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.
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
- :
toString(textOnStringList(toStringList(%{
nnnnn}, ", "), toString(usersWithEmail(^%))))
Note that:
- Before setting up the post function, a custom text field is needed for storing the email adresses.addresses
- %{10400} is field code for a text custom field where the email adresses 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:
When now creating a new issue and adding the email adresses to the custom field when the create issue screen, they will be added as watchers.
Other examples of that function
Incoming Links | ||||
---|---|---|---|---|
| ||||
Related Usage Examples
Content by Label | ||||
---|---|---|---|---|
|