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"
}
}
]
}
}
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.