Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,301,530
Community Members
 
Community Events
165
Community Groups

Automation: When all sub-tasks are done → move parent to Done

I am trying to configure the rule "When all sub-tasks are done → move parent to Done". However, faced some troubles. Firstly, in the audit "no actions performed" message appeared. Secondly, when all subtasks are transitted to "Done", the message "Update Parent Issue" is triggered. Is there any mistakes in the rule or maybe something else causes the issue?photo5246924983475745712.jpgphoto5246924983475745714.jpgphoto5246924983475745717.jpg

6 answers

4 accepted

2 votes
Answer accepted

Hi @Alexey Petenko  -- Welcome to the Atlassian Community!

For your question about why no actions are performed...

Your trigger checks for a sub-tasks moved to the "Done, QA" status, but later you test a condition for all sub-tasks moved to the "Done" status.  So those cannot match.

If you have multiple possible "done" status values for sub-tasks, perhaps your "If sub-tasks match" condition should test for all possible "done" status values.  For example:

status IN ("Done", "Done, QA", etc.)

Also, I recommend adding another condition prior to transitioning the parent, checking first that it is not already in "Done".  That will prevent repeatedly moving of the parent to that status.


Best regards,

Bill

0 votes
Answer accepted
Yvan Martin Atlassian Team May 13, 2021

Hi there,

Developer from Automation here.

In general your rule looks correct from a sync sub-tasks point of view, we have a very similar rule available in our template: library https://www.atlassian.com/software/jira/automation-template-library/most-popular

As others have mentioned though your trigger status has QA listed, but you don't look for QA in sub-tasks, you might need to adjust this or what status is considered done in your definition.

If you require further help more specific to your instance than it's worth getting in touch with support here: https://support.atlassian.com/

The thing is that when all sub-tasks are transferred to Done, they literally go to Done. However, when Bug sub-tasks are transferred to Done, they change their status to QA

photo5264830856751591844.jpg

0 votes
Answer accepted
John Funk Community Leader May 11, 2021

Hi Alexey - Welcome to the Atlassian Community!

That message looks like it comes from the workflow itself. Is there some type of post function on the workflow in addition to the automation rule? 

I cannot clearly understand what do you mean, therefore, can you please clarify the cause with the workflows.

Also, there was a mistake in the screenshot above, Parent issue is transitioned to both "Done" and "QA"

done and qa.JPG

John Funk Community Leader May 11, 2021

You have to edit the workflow itself - not the automation. 

Got to Settings > Issues > Workflows

Search for the workflow being used by the project and click on Edit

It might be a workflow specifically used by sub-tasks so be sure you have the right workflow. 

Then click on the transition to Done. 

Finally check the post functions on that transition to see if there are any for Transition parent issue - or something like that. 

John Funk Community Leader May 17, 2021

Hi @Alexey Petenko  - Have you done these things? 

0 votes
Answer accepted
Jack Brickey Community Leader May 11, 2021

What status is the parent in And is there a supporting transition from the current status to done? In other words once all of those subtasks are done and the parent fails to be moved to done by automation can you manually move the parent done?

It is not important is which status the Parent is, however, typically it is either in custom status "Approved" or "In Progress" (mostly).  Yes, manually the Parent can be transited in "Done" (screenshot above).

Also, we have the second rule where the parent is transited to "In Progress" and this rule is fine.

We aim to make 2 separate automation rules or one - "When the first sub-task is moved to "In Progress" --> Parent is moved to "In Progress" and when all sub-tasks are moved to "Done" --> Parent goes to "Done" automatically. 

hello i did it from this way:

Screenshot 2022-06-12 095511.png

Hi All! How to create Automation rule : When certain sub-tasks(not all) are done → move parent to Done

Hello @Bohdan Lozinskyi
Need better to understand the context. What do you mean by "not all".
We solved our issue like this, but to get what you want, you need to rewrite the JQL Sub-task match(That's which under the For Parent)
to done.png


Like Bill Sheboy likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS
Community showcase
Published in Jira Software

An update on Jira Software customer feedback – June 2022

Hello Atlassian Community! Feedback from customers like you has helped us shape and improve Jira Software. As Head of Product, Jira Software, I wanted to take this opportunity to share an update on...

247 views 2 8
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