There is this template that Atlassian so kindy have made for us, there cloeses the parent when all sub-tasks i closed. Works great
The issue is when haveing a sub-task there generate new subtask in the parent when finished the other automation gets triggered before it's done creating new sub-task resulting in the parent task is closed while the new subtaks still gets created, this result in the parent being closed but have open subtaks
is there a way to prevent this?
As others have noted, this symptom is possibly caused by a race-track condition spanning your rules. Often the solution for this is to change your approach. For example, collapsing multiple rules into one, changing rule triggers, etc.
To help with that, the community will need to see images of your complete automation rule, showing all details of the actions, and of the audit log details showing the rule execution. Those will provide context for what adjustments can be made.
In the meantime, would you please explain the problem your rules are trying to solve?
You initially state this is to close the parent when all subtasks are closed...However, you later add more subtasks are created, which seems to indicate either a process problem or the rules do more than what you indicate.
Kind regards,
Bill
Hey there,
Munasir here, I've run into similar automation hiccups with Atlassian tools before. 😅
It sounds like you're in a classic race condition where one automation is triggering before another finishes. You might want to consider adding a delay or setting a condition for the parent-closing automation to check not just for existing sub-tasks but also any "in progress" sub-task creation processes.
Or better yet, if possible, adjust the sequence of automation such that new sub-task creation happens before the parent issue evaluation. It's a bit tricky, but playing around with the automation sequence might just do the trick.
Would love to hear if anyone else has found a smooth workaround for this!
Keep coding and configuring!
Munasir. 🚀
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Benjamin Høegh It is not possible to wait or stall the automation there is a feature request which may address your question https://jira.atlassian.com/browse/AUTO-238.
What I would suggest as an alternative is to create another automation which will open the parent if a new sub-task is added.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Will that not result in new notifications for the assinged user?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Benjamin Høegh that depends on your project's notification scheme.
If you are using the default one then yes All Issue watchers, Reporter and Assignee will be notified
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey, thanks for sharing that feature request link. It's good to know that Atlassian is aware of the need for a "wait" or "stall" function in their automation features. I've been looking for something like this for a while now!
Your alternative solution sounds pretty reasonable. I guess setting up a separate automation to re-open the parent task when a new sub-task is added could work as a temporary fix. It's not the most elegant solution, but it's better than manually tracking and updating these tasks. I'll give it a try and see how it works for our team. Fingers crossed that Atlassian moves quickly on that feature request!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.