Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

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 Community Leader Oct 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.

Hi @Ivan Lima ,

Thanks for your reply!!

I have the following errorimage.png

Please advice

Thanks

Ivan Lima Community Leader Oct 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
Site Admin
TAGS
Community showcase
Published in Jira Software

How to create Jira issus from Excel file?

When to use CSV importer When managing your processes in Jira, there are many occasions where you need to create a lot of tasks. Creating them one by one will cost you a lot of time and effort and i...

4,490 views 22 32
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you