Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Copy the child value from a Cascading select custom field to "Affects versions" field

Samuel Bar
Contributor
October 17, 2020

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

1 answer

0 votes
Ivan Lima
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 18, 2020

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.

Samuel Bar
Contributor
October 19, 2020

Hi @Ivan Lima ,

Thanks for your reply!!

I have the following errorimage.png

Please advice

Thanks

Ivan Lima
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 19, 2020

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}}"} ]
}
}

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events