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?
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.
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.
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.
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/
For JSM June Challenge #2, share how your non-technical teams like HR, legal, marketing, finance, and beyond started using Jira Service Management! Tell us: Did they ask to start using it or...
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