Automation Rule to add additional approvers (A4J)
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Summary
The following automation rule will help to add users to the Approvers field without replacing the current values.
Environment
Jira Software
Jira Service Management
Automation for Jira
Diagnosis
When creating a Rule with the Edit Issue action and selecting the Approvers field, if you define a user name in the Dropdown it will overwrite the values when the rule is executed.
Solution
To add new users to the field we could expand the More Options available in the Edit Issue action and add a JSON to add users instead of replacing, based on the details contained in Advanced field editing using JSON.
On the Edit Issue action expand the More options and add the following JSON, replacing <username> with the actual user name:
1 2 3 4 5 6 7 8 9
{ "update": { "Approvers" : [ { "add": {"name":"<username>"} } ] } }
Was this helpful?