Forums

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

Automation to remove images attachments for size

Yaruro Carlos TEST
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 16, 2026

Hi, I have de the same trouble, but I neet delete all images that yours size is more smaller that 20k 

do you help me about, I will try another conditions suggets for me

This is similar case for me - Link  

 

Thanks

 

2 answers

1 vote
Trudy Claspill
Community Champion
January 16, 2026

Hello @Yaruro Carlos TEST 

Welcome to the Atlassian community.

If you are willing to consider using a third party app to help you find those attachments you might consider the two apps mentioned in this post from 2023.

https://community.atlassian.com/forums/Jira-questions/Attachments-by-file-size/qaq-p/2238185

Neither could fully meet the requirement at that time, but they may have added capabilities since then.

 

To solve this with an Automation rule would require you to use the Send Web Request action to retrieve information about the attachments on each issue using the REST API, parse the data, and then use additional Send Web Request actions to delete each attachment that met your criteria.

You would need to use the Get Issue API endpoint to get the issue data including all the attachments on the issue. The data for each attachment includes its size. You would have to parse the response to identify the attachments that meet your size criteria.

https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/#api-rest-api-3-issue-issueidorkey-get

You could then use the Delete Attachment API endpoint to delete each attachment one by one.

https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-attachments/#api-rest-api-3-attachment-id-delete

0 votes
Brant Schroeder
Community Champion
January 16, 2026

@Yaruro Carlos TEST I would suggest following the steps in the KB.  It is for JSM but still applies to Jira as well.  https://confluence.atlassian.com/jirakb/delete-unwanted-attachments-from-jsm-requests-using-automation-1235853531.html 

Trudy Claspill
Community Champion
January 16, 2026

@Brant Schroeder 

That KB, like the original post the author referenced, appear to be for deleting attachments based on the filename, while the post author asked about deleting attachments based on the file size. Or did I miss something?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events