Forums

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

Update a field of a parent issue when al the child issues are "done"

Mario Palacios Fernández
Contributor
October 26, 2023

Hi,

 

I'm trying to create an automation in JIRA software that updates a field of a parent issue when all the child issues are "done"

Why is this automation not working? I add a screenshot

Thank you in advance

image.png

2 answers

2 accepted

0 votes
Answer accepted
Tim Kopperud
Community Champion
October 26, 2023

Hi  @Mario Palacios Fernández, I would recommend you branch using lookupIssues. 

Regard a branch as iterating x times. That means you cannot retreive an issue key from a list (a collection) using "list.field" syntax as in your example where it is lookupIssues.key (ref plural.singular).

You will need to fetch every issue from the list. This can be done by branching by lookupIssues. 

Below you see the principle on how it can be done:

image.png

In the branch, to fetch the issue key for the current iteration, you can use the following smart value (created in the Variable name):

{{currentIssue.key}} 

The key is to fetch the current issue during the loop.

You might solve it by using variables and  smart value list functions but will be complicateed (not recommended when alternatives as above exists).

TimK. 

Mario Palacios Fernández
Contributor
October 30, 2023

Hi! I found the solution. Thanks for the help!

0 votes
Answer accepted
Dan Breyen
Community Champion
October 26, 2023

Hi Mario.  I found an Automation Template that looks like it will do the job for you.  Once you get to Automations, there's a templates tab and at the bottom, there's a 'See more templates in our automation library' link.  I've included a link here to it, take a look and see if it would work for you. Update Parent Automation 

Hope that helps

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