Forums

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

Purging issues, records retention

bduncan
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.
December 16, 2020

I've been looking for a good solution that will allow me to apply records retention conditions (ideally, with JQL) to issues - so that I can preserve projects but purge issues that meet given conditions.

For example, service desk tickets that were resolved two years ago.

Any suggestions? Any good plug-in options, default to REST API?

Be interested also in the same scenario on a cloud instance.

1 answer

1 accepted

1 vote
Answer accepted
Max
Contributor
December 17, 2020

Hi!

If I understand correctly, then you need JQL expression + bulk change.

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

Example: updated < startOfYear(-720d) AND resolution = Done 

bduncan
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.
December 17, 2020

Yeah, ideally using that sort of JQL but I'm looking for an option that automates the bulk change (delete)

Daniel Ebers
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.
December 24, 2020

In case you have Script Runner available on your instance you could do it using "Escalation Services".
Otherwise a REST API access executing the desired JQL will do the job (alongside with a cronjob or a similar mechanism).

In total this can be a delicate task to do. Delete is delete = gone is gone.
Nothing against it - but it must be very well tested.

bduncan
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.
February 11, 2021

@Daniel Ebersyeah, thanks! I had got to looking at Escalation Services - this looks like a good option, initial tests look good.

Suggest an answer

Log in or Sign up to answer