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.
- copying from the field called "manager"
- hard coding a name. for example "Bill Gates"
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"
}
}
]
}
}