I would like to copy from a Cascading select custom field the child value selected and update "Affects Versions" native field during the creation of a new issue in an automation rule
Cascading custom field ID = customfield_10296
{
"update": {
"versions" : [ { "name": "{{triggerIssue.fields.customfield_10296.child.value}}"} ]
}
}
No error occurred but the Affects Versions field in the new issues is empty
Hi @Samuel Bar, I tried the same scenario using the code snippet you shared. It worked for me when I created the version with the same name as the custom field child value in the target project (under release project settings) - where the ticket was created. I was able to spot that through the Automation Audit log. If you have the matching version created in the target project, all the appropriate permissions in place, and still not seeing the updates, what does the Audit log entry say?
Cheers,
IL.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yeah, now I realized that you’re using update in your JSON body. It should be fields.
that’s my example I tested.
{
"fields": {
"versions" : [ { "name": "{{triggerIssue.fields.customfield_10033.child.value}}"} ]
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.