Forums

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

How to delete linked issues associated to an EPIC?

Mohamed Ghayasuddin
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 6, 2019

Hi All,

Do we have an option or any condition to be set, to delete all issues linked to an Epic whilst deleting an EPIC.

To delete an Epic, I simply access the EPIC screen and go to More > Delete. But this doesn't deletes issues associated to it

Please advise.

Regards,

Mohamed.

1 answer

2 votes
Alexey Matveev
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 7, 2019

Hello,

Use the bulk delete feature.

First query all issues belonging to the epic with a query like this:

"Epic Link" = YOUR EPIC KEY

Then bulk delete all the issues:

https://confluence.atlassian.com/jiracoreserver073/editing-multiple-issues-at-the-same-time-861257342.html

Then you can delete the Epic.

Alexey Matveev
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 7, 2019

Otherwise you would need an app like Power Scripts, ScriptRunner, Automation for JIra to do it automatically.

If you want to use the Power Scripts app, then you could create a listener on the Delete Issue event with a code like this:

string keys = selectIssues("\"Epic Link\" = "  + k);

for (string k in keys) {

   deleteIssue(k);

}

In this case if you delete an Epic. all issues in the epic will be deleted automatically. 

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 9, 2019

Hi @Mohamed Ghayasuddin   Welcome to the community!

A variation on what @Alexey Matveev is suggesting is to filter for the linked issues and epic at one time, and then use bulk edit to delete them.  A query to select them would be:

project = YOUR-PROJECT
AND "Epic Link" = YOUR-EPIC-KEY
OR Key = YOUR-EPIC-KEY
ORDER BY Key

 

With bulk operations, verify you see what you expect before confirming the operation...especially delete.

 

Best regards,

Bill

Adam Stein
Contributor
June 6, 2023

You don't really need to craft a query or filter for this. Just view the epic and then click the "..." menu above child issues and select bulk edit.

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, atlassian government cloud, fedramp, webinar, register for webinar, atlassian cloud webinar, fedramp moderate offering, work faster with cloud

Unlocking the future with Atlassian Government Cloud ☁️

Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.

Register Now
AUG Leaders

Atlassian Community Events