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
@Yaruro Carlos TEST you do not need a plugin to do this. My post was cut off. The link provides the foundation for the automation that you will create. Here it is with the details of each step.
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.
You could then use the Delete Attachment API endpoint to delete each attachment one by one.
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.
@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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I see now (with your second post) how the automation in the KB can be changed to meet the requirement. Thanks for clearing that up!
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.