I sometimes get Jira tickets that end up with too many attachments - typically caused by repeated email replies from customers that have a bulk of images & links to their online media accounts in their email signature.
I can delete attachments one at a time, but when there are so many, it would be great to be able to bulk delete. Any tips?
Thanks
Sheila
Unfortunately, Jira does not have a built-in bulk delete option for attachments on an issue. Here are your practical options:
This is the most straightforward free approach. You can write a small script that first retrieves all attachments on an issue, then deletes them by ID. The two endpoints you need are:
A simple loop in Python, PowerShell, or even curl in a bash script can delete dozens of attachments in seconds.
There are third-party apps like "Bulk Attachment Manager" or "Issue Cleaner for Jira" that add bulk attachment management directly in the Jira UI. Search the Atlassian Marketplace for options.
Hello @Sheila Glass
You mentioned "Email signature".
So i can share how i managed this in instance.
I'm using this free app - https://atheratech.atlassian.net/jira/marketplace/discover/app/io.aety.mailsignatureremover
Basically, you download these attachments (Signature attachments) and upload to that app, and next time app will remove from attachments.
I also tried similar solution using automations.
So when new work item is created -> By based of File name, you can create condition, that for example it would always delete attachments who have a pattern like - "Signature.001" or "facebook.01" and so on.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks, Ugnius!
I am going with the JSM - Automation - Rule option you suggested to try to delete those Social Media attachments when/as the email reaches the support ticket.
However, I'm having a bit of trouble with the Regular Expression syntax - I've reached out to Atlassian Support for assistance. Once I get this solved, I'll reply to this thread with the solution.
Here is what I have so far... Image attached.
Thanks
Kind Regards,
Sheila
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
So in variable {{social}} i would put value:
{{issue.description.match("https?://(www\.)?(facebook|instagram|linkedin|youtube|twitter|x|tiktok)\.com/\S*")}}
and then in regular expression i would put variable {social}}
Tell me how this goes!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I don't want to download or delete all - But I'd like to select most and delete with one click.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.