How to update the Approver via an Approval field using Jira Automation in team-managed projects

This automation rule will update the approver of a ticket
In the Service Project, go to Project Settings → Automation.
Click on Create rule
Set the trigger as Issue Created
Set the action to Edit issue
Click on More actions
In the Additional fields section, the following JSON needs to be added.
{ "update": { "<fieldName>": [ { "add": { "accountId": "<accountID of the user to be selected>"} } ] } }
Here, <fieldName> = approval field name. For eg. if the approval field name = NextGen Approver, then <fieldName> = NextGen Approver
accountID = Account ID of the user that needs to be updated as the approver.
Steps to find the accountID of the user
Go to Settings >User Management > Users
Click on the required user.
Copy the account ID from the URL as, for example:
For the above example, the JSON will look like:
{ "update": { "Nextgen Approver": [ { "add": { "accountId": "0010eea0e010x0000xx"} } ] } }
Subscribe to my newsletter
Read articles from Yusuf Kamajaya directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by

Yusuf Kamajaya
Yusuf Kamajaya
This space is where I keep notes, explainers, and mini-guides—mostly to help my future self (and maybe you too).