Hi,
I am trying to copy the users from a multi user piker field to another field of the same type, but the deactivated users give me an error. I tryed to solve it with the following JSON code within the automation:
{
"update": {
"customfield_10701": [
{{#issue.epic.customfield_10800}}
{{#if(active)}}
{"add": {"name": "{{name}}"}}{{^last}},{{/}}
{{/}}
{{/}}
]
}
}
Can you tell me where the error is?
Regards,
Juan Fran.
Hi @agente
For a dynamic JSON generation error, I recommend writing that entire expression to the audit log, as that will show where the error is in the JSON.
I suspect the problem is the conditional comma delimiter with {{^last}}; it is inside of the active conditional, and so may not be resolving as expected.
Kind regards,
Bill
Spend the day sharpening your skills in Atlassian Cloud Organization Admin or Jira Administration, then take the exam onsite. Already ready? Take one - or more - of 12 different certification exams while you’re in Anaheim at Team' 25.
Learn more
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.