I previously created an automation that if an Epic was deleted, all the child tasks under that epic would automatically be deleted as well. It seems that sometime after it was created, the rule stopped working as it was intended. Now when the Epic is deleted, the Child tasks as not longer associated to any Epic. I have tried multiple different rules but nothing seems to be working.
This is the previous rule that worked:
I would very much appreciate it the community's help with this one. Thank you.
Hi @Elizabeth_Lee -- Welcome to the Atlassian Community!
First thing: deleting work items can be problematic as there is no built-in undo feature. It may be better to move an Epic (and its child work items) to "Done" and set the Resolution to a state such as "Abandoned". This prevents accidents and enables recovery of the items. Lots of teams do this, and then disable the delete permission for everyone except Site / Product Admins.
If you still want to delete the work items...
For the rule you show, it was likely a coincidence it worked earlier. The reason is the child work items' Parent field contained the key to the Epic, and when the Epic is deleted, there is a racetrack timing situation where:
But, we do not know the actual order those things happen. And, based upon my observations of other rule triggers with timing problems, it is possible the issue_deleted event is raised before the Epic is completely gone in terms of other work items' references.
One way to safely do what you describe is to reverse the ordering or capturing all the data first, perhaps with a manually triggered rule rather than using the built in Delete feature:
The order of the steps is important to reduce (but not eliminate) possible update collisions. And, I recommend setting the trigger permissions such that only a few people can run this rule.
Kind regards,
Bill
Hi Elizabeth - Welcome to the Atlassian Community!
So what is happening now? It just deletes the Epic and doesn't touch the children?
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.