Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
  • Community
  • Q&A
  • Jira
  • Questions
  • Is there a way to create an automation that when an epic is deleted all the child tasks are deleted?

Is there a way to create an automation that when an epic is deleted all the child tasks are deleted?

Elizabeth_Lee
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!
November 26, 2025

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:
Rule-Epic-Automation.png

I would very much appreciate it the community's help with this one. Thank you.

2 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.
November 26, 2025

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:

  • an event is raised indicating issue_deleted for the Epic
  • the Epic is actually deleted
  • issues referencing the Epic are updated to "unlink" them, including the Parent field and issue links
  • etc.

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:

  • trigger: manual, to run from the Epic, and perhaps adding a user input field to "Are You Sure" confirmation, as described in this article 
  • smart values condition: to check the user input is confirming the deletion
  • condition: issue type is Epic
  • action: lookup work items, with JQL, to find all the child work items, and save their keys
  • action: delete work item (to remove the Epic)
  • branch: on JQL to the results of the lookup
    • action: delete work item, to remove a child

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

0 votes
John Funk
Community Champion
November 26, 2025

Hi Elizabeth - Welcome to the Atlassian Community!

So what is happening now? It just deletes the Epic and doesn't touch the children? 

Suggest an answer

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

Atlassian Community Events