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

Alexey Petenko May 11, 2021

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

4 votes
Answer accepted
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.
May 11, 2021

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
Atlassian Team members are employees working across the company in a wide variety of roles.
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/

Alexey Petenko May 17, 2021

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
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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? 

Alexey Petenko May 11, 2021

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
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 17, 2021

Hi @Alexey Petenko  - Have you done these things? 

0 votes
Answer accepted
Jack Brickey
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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?

Alexey Petenko May 11, 2021

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. 

0 votes
mohammad shafiei June 11, 2022

hello i did it from this way:

Screenshot 2022-06-12 095511.png

0 votes
Bohdan Lozinskyi September 14, 2021

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

Alexey Petenko September 22, 2021

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
AUG Leaders

Atlassian Community Events