The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Not able to assign values in Labels & approvers field in JSM automation

DollyShukla
April 5, 2025

Hi ,

I have created automation flow like-
1. Manually trigger from alert 
2. Fill values in input form
3. Lookup table contains key-values for team name & team owner . 
4. log prints correct values based on above team name selection , team owner is picked. (everything works fine till here)
5. On create incident , name to add team name in Labels & team owner in Approvers field . This is failing .

Error is  same for Labels & Approvers -

Your request could not be created. Please check the fields have been correctly filled in. Please provide a valid value for field 'Approvers'
Team owner given as account id , name & email address not working

jsm.PNG

 

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
John Funk
Community Champion
April 19, 2025

Hi Dolly,

We need way more screenshots with details. What is the value you are putting in each variable? Meaning the code. You will need an email address or an accountId for the assignee to add to the Approvers field. 

0 votes
Kai Krause
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
April 5, 2025

Hi,

 

i think you have to do it in the JSOn-part of the rule. 

something like 

{
  "update": {
    "labels": [
      {
        "add": "Approval Needed"
      },
      {
        "add": "Review"
      }
    ],
    "approvers": [
      {
        "add": {
          "accountId": "user-account-id" // Replace with the actual account ID of the approver
        }
      }
    ]
  }
}


 The possibilities are here Advanced field editing using JSON | Cloud automation Cloud | Atlassian Support

BR

Kai

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events