Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Wait until other active automations are finished processing

Benjamin Høegh
Contributor
August 18, 2023

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?

3 answers

1 vote
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.
August 18, 2023

Hi @Benjamin Høegh 

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

0 votes
munir ashraf
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 18, 2023

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. 🚀

0 votes
Sayed Bares _ServiceRocket_
Community Champion
August 18, 2023

@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.

Benjamin Høegh
Contributor
August 18, 2023

Will that not result in new notifications for the assinged user?

Sayed Bares _ServiceRocket_
Community Champion
August 18, 2023

@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

Sajid Ali August 24, 2023

thank, i will do also

Sajid Ali September 18, 2023

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!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events