I have some automation in place which creates a number of related issues. That piece works fine.
Where I am struggling is setting the approvers using 2 sources.
My code is below. If I remove the second add block the code works. However I do not know the syntax required to convert "Bill Gates" into what ever the Approvers field desires.
Would really love some guidance on this as I am sure this is simple.
{
"update": {
   "Approvers" : [
      {
         "add": {
                 "id":"{{issue.manager.accountId}}"
                }
      {
         "add": {
                 "Bill Gates"
                }
       }
  ]
 }
}
Hi @Paul Fechner ,
I believe the approvers field will expect an Array of approvers so you're missing some punctuation here.
Something like in the image below should work.
So going by your syntax I believe you are missing a "," between the 2 approvers.
{
"update": {
   "Approvers" : [
      {
         "add": {
                 "id":"{{issue.manager.accountId}}"
                },
      {
         "add": {
                 "Bill Gates"
                }
       }
  ]
 }
}
					
				
			
			
			
				
			
			
			
			
			
			
		 
 
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.