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

Yusuf KamajayaYusuf Kamajaya
1 min read

This automation rule will update the approver of a ticket

  1. In the Service Project, go to Project Settings → Automation.

  2. Click on Create rule

  3. Set the trigger as Issue Created

  4. Set the action to Edit issue

  5. Click on More actions

  6. In the Additional fields section, the following JSON needs to be added.

     {
         "update": {
             "<fieldName>": [
                 {
                     "add": { "accountId": "<accountID of the user to be selected>"}
                 }
             ]
         }
     }
    
  7. Here, <fieldName> = approval field name. For eg. if the approval field name = NextGen Approver, then <fieldName> = NextGen Approver

  8. accountID = Account ID of the user that needs to be updated as the approver.

Steps to find the accountID of the user

  1. For the above example, the JSON will look like:

     {
         "update": {
             "Nextgen Approver": [
                 {
                     "add": { "accountId": "0010eea0e010x0000xx"}
                 }
             ]
         }
     }
    
0
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).