Delete issues automatically from a project once in a month

Dan27 October 22, 2019

Hello,

 

How can I delete issues from a specific project automatically (once in a month)?

 

Thank you!

Daniel

4 answers

1 vote
Joe Pitt
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 22, 2019

Do not delete issues. When you delete it is GONE. Hardly a week goes by without someone wanting to restore an issue. Deleting issues will come back and bite you when it is the most inconvenient. I suggest closing with a resolution value of Deleted anything you want to delete. I implement a special transition only the project lead can execute and it requires filling in a reason field from a select list (such as entered in error, OBE, Duplicate, Other) and explanation text.
Deleting issues destroys historical data. Missing issue numbers will eventually cause a question about what it was and why was it deleted even if it was done properly. Missing data always brings in the question of people hiding something that may have looked bad.

The only viable way to restore an issue is to create a new instance of JIRA and restore a backup that has the issues. Then export them to a csv file and import them to your production instance. You will lose the history.

Payne
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.
October 22, 2019

This ^

0 votes
Avinash Bhagawati _Appfire_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 22, 2019

Hi @Dan27 ,

As above added comments you will be able to configure this with help of automation for Jira. Please find below automation rule for the same.

 

automation.png

Thanks,

Avinash

0 votes
Mohamed Benziane
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 22, 2019

Hello Daniel,

 

You will need a plugin like "Automation for JIRA" to achieve this. Try this one it's free for server :

https://marketplace.atlassian.com/apps/1211836/automation-for-jira-server-lite?hosting=server&tab=reviews

 

But do you really need to delete issue ? why not just "hide" them with some security level that allow only few user to see them.

0 votes
PVS
Banned
October 22, 2019

Hi @Dan27 

 

An easier way to do this would be to use the JIRA Automation Plugin. You can create the filter as Tiago mentioned, and the Automation tool will run it and delete the issues when you want. :)

Cheers,

PVS

Mohamed Benziane
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 22, 2019

Hi @PVS  

Why don't you just post the link to the previous question instead of copy the work of someone else ?

https://community.atlassian.com/t5/Jira-questions/JIRA-Automated-old-issue-deletion/qaq-p/221265

PVS
Banned
October 22, 2019

The solution is in there Because I will Give that Solution @Mohamed Benziane 

Suggest an answer

Log in or Sign up to answer