We have a service management project that receives a lot of emails, often with large attachments. It is using up more storage space than all our other service management projects combined. We have a standard plan so our storage is limited and it is going to be an issue down the road.
Generally the issues in this project don't need to be kept for more than 30 days. How can I use automation to automatically delete issues in this project older than a few months?
Whatever approach you choose for automatically purging old information from Jira and JSM Cloud, I suggest you investigate, build out, and test a backup/restore capability first. That will provide some protection against errors in your purge process.
For more information, please look here: https://confluence.atlassian.com/jirakb/how-to-automate-backups-for-jira-cloud-applications-779160659.html
You can set up a scheduled automation rule to run a JQL search with "created < startofDay(-30)" and delete the issue. This will check every issue every day at a specified time and delete any issue that was created over 30 days ago. You can replace the 30 with however many days you want.