Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

how to automatically delete tickets after 30 days?

hey there guys,

i wanted to ask how to do make my costumers tickets to delete (for good) after 30 days?

when a ticket is marked "Done" i want it to delete after 30 days

3 answers

1 accepted

0 votes
Answer accepted

You can use automation for Jira, specifically the schedule rule and set it to run daily. You can use this JQL

Project =ABC AND status = "Done" and updated < -30d

Then set an action to delete the issue. 

i tried to do that, and for some reason no issues popped up in the JQL bar

Most probably no ticket that fits that criteria at the moment, toggle the number of days to see the result you get. However deleting issues has no reverse buttons. Except you have some data privacy compliance that requires all reported tickets to be deleted after a certain number of days, it's better not to delete it in the first instance.

@Prince Nyecheit worked thanks :P

Like John M Funk likes this
1 vote
John M Funk Community Leader May 11, 2021

Hi Eric - Welcome to the Atlassian Community!

You can do as guided by @Prince Nyeche  - that should work well.

But I would caution you on deleting any issues in Jira. It is better to just leave them as Done so they are searchable in the future if needed. You can exclude Done issues from boards and filters so there's really no need to delete them. 

i tried and what he gave me and no issues showed up

1 vote
Jack Brickey Community Leader May 11, 2021

I would strongly encourage you not to delete issues. Once they’re gone they’re gone for good. History is always important especially when you’re dealing with customers. Is there some reason why you want to be deleted versus just a done resolve status?

If they contain sensitive information that needs to be removed from any / all systems after quick expiration... eg: Personal information. 

Jack Brickey Community Leader Jun 07, 2022

@Martin Kirk , if this is the case then use automation as described by Prince in the accepted answer.

Like John M Funk likes this

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira Software

Upcoming changes to epic fields in company-managed projects

👋 Hi there Jira Community! A few months ago we shared with you plans around renaming epics in your company-managed projects. As part of these changes, we highlighted upcoming changes to epics on...

14,135 views 34 44
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