Forums

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

Automation to update children of Epic is reporting success, but not working

Alex Smith August 3, 2023

I created the following automation following some examples I found on this forum. The automation aims to set the fixed version on all child tickets of an epic to the same value as the parent epic.

As you can see from the log, I'm saving the Epics fixVersion in a variable and logging that variable to confirm it worked. Then I start the For: Stories to loop over the child tickets. I'm again logging the value in epicFixVersion. Finally, it logs that it has successfully updated all of the tickets in the epic.

Screenshot 2023-08-03 at 2.09.25 PM.png

I'm setting the Fix Version with this action:

Screenshot 2023-08-03 at 2.14.45 PM.png

The logs look good. The automation seems like all the others I've seen, but the child tickets aren't changed. 

3 answers

1 accepted

3 votes
Answer accepted
Kai Becker
Community Champion
August 3, 2023

Hi @Alex Smith 

welcome to the community and thanks for your question.

Actually there is an easier way than creating a variable and copy values.

You can just edit the issue field in your loop an copy over the value from the trigger issue:

Screenshot 2023-08-03 at 20.36.13.png

Hope this helps 🙂

Bill Sheboy
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.
August 3, 2023

Hi @Alex Smith -- Welcome to the Atlassian Community!

Yes, and...to the answer from Kai:

The reason your rule does not work as you expect is created variables are text, and you have stored a list of multiple versions in it.  That got converted to a comma-separated values list...but of only the version id values, not all of the version information.  That was visible when you logged the created variable.

To use that variable in the issue edit, you would need to split them apart and then add them using a JSON edit.

The way Kai described is much simpler. 

Remember to decide if you want to replace or add to the stories in the epics: to replace, clear the "Add to existing values" checkbox in the edit.

Kind regards,
Bill

Like • # people like this
Alex Smith August 4, 2023

Thank you for the explanation Bill! I like understanding why things don't work as expected, so I appreciate that! 

Like • # people like this
0 votes
Alex Smith August 4, 2023

Thank you! Works great. 

0 votes
Marc - Devoteam
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.
August 4, 2023

Hi @Alex Smith 

Seems you have used part of I rule I presented on another topic in the community.

The setup of that rule has very different requirements.

The requirement you have is a simple one, as explained by @Kai Becker 

Wendy Hamlin February 8, 2024

While looking for something similar I came across this thread. Just had to say - love the profile pic!

Like • Marc - Devoteam likes this

Suggest an answer

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

Atlassian Community Events