...
Instructions
Navigate to the desired workflow transition and add the “Email issue(s) (JMWE app)” intended workflow to make the necessary changes in the edit mode.
Select the required transition.
Select the Post functions tab and click
Add post function
.Add the Email issue (JMWE app) post-function.
Add Email Content (:
Email content: Enter Subject, Text Body)Under “Recipients”, add the below template in “Users as needed.
Recipients: Enter the following in Users from template:”Code Block language java {% set allUsers = [] %} {% for grp in (issue.fields.customfield_10082 | field("name"))%} {% for user in (grp | groupMembers) %} {% if (allUsers | filter(user | field("accountId")) | length == 0) %} {% set ignored = allUsers.push(user | field("accountId")) %} {% endif %} {% endfor %} {% endfor %} {{ allUsers }}
Replace 10082
with the id of the multi-group picker custom field.
...
...
Publish the workflow for the changes to be applied as configured.
References
...