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.
Best regards,
Bill
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/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Alexey Petenko - Have you done these things?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi All! How to create Automation rule : When certain sub-tasks(not all) are done → move parent to Done
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.