It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Trying to delete all the children Tasks when an Epic is deleted Edited

I'm trying to delete all the children Tasks when an Epic is deleted whith no luck.

I'm using JQL for "Branch rule/Related Issues": parentEpic = {{triggerIssue.key}}

Do you know what I'm doing wrong?

FireShot Capture 13 - Automation rules - JIRA_ - https___vrlife.atlassian.net_plugi.png

The error in the Audit log is: "Error searching for related issues. This is most likely because the following issues don't have a related issue of the type you specified."

I also have tried to use "Stories (or other issues in Epic)" but it doesn't work either.

2 answers

0 votes
andreas Community Leader Apr 25, 2017

Hi Carlos,

I don't think this is possible unfortunately. It's a bit of a chicken and egg problem with JIRA.

The issue is that we recieve the 'issue deleted' event *after* the epic issue has already been deleted.  By this stage, JIRA has already removed the epic link from all the stories that used to be in this epic.

As a result when you try to search for issues with this epic link, the search returns no results.

I'm afraid I don't really have a solution for this case at the moment.

Cheers,

  Andreas

Hi Andreas, thank you very much for the info!

0 votes

Hi  Carlos,  i've just managed to create a rule for this specific problem

 

It's really hacky, you can change the "borrar420" to whatever you like.

 

To use it, just change the description of the epic to whichever string you choose, and it will first delete the subtasks/issues and then the epic itself.

 

ygFidUx

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Marketplace Apps & Integrations

Expose your beautifully crafted Dashboard through the Jira Service Desk Customer Portal

  A picture is worth a thousand words, especially when you're trying to find relationships and understand your data. Here, Dashboards play a vital role in gaining insights from a variety of dat...

344 views 5 4
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you