Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Jira Cloud Attachment Size limit not enforced

We've been alerted that our Jira Cloud account is nearly out of free space. In my efforts to cleanup our instance, I've noticed that some teams have attached massive videos to some tasks. These videos appear to exceed the attachment size limit set in the Jira administration.  

Question: Is the attachment limit no longer enforced? 


Jira Cloud  attachment size limit set to 10MB. 
Screen Shot 2021-12-03 at 8.40.30 AM.png

Test Data

I generated a 12MB file on my Mac 

  • Create file: "mkfile 12m 12mfile.pdf"
  • File details:  12582912 Dec  3 08:29 12mfile.pdf


  1. Create a test Jira task
  2. Attempt to attach the 12MB attchment
  3. Expect:  Jira warns user that file is too large to attach
  4. Actual: Jira accepts the file and attaches to task with no warning. 


2 answers

OK.  It appears that Jira is blocking the uploads, but the error doesn't mention file size as a problem. 

Screen Shot 2021-12-03 at 3.22.43 PM.png

After page refresh, the issue is gone. I assume that the file was also removed from the filesystem, too. 

Up for this subject. 

We have the same problem with same scenario case. 

We still have some plenty free space but it's going fast lol 

Our problem is video attachments. Ideally, videos should be stored where they can be accessed with a URL (Google Drive) and linked to issues. 

I'm handling the cleanup with a Python script against the REST API.   

  1. Query tasks created before X and that have attachments
    1. GET  https://<instance><url-encoded-query>
      Project = <PROJECT_KEY> AND attachments is not EMPTY and created < "2017/01/01"
  2. For each matched key
    1. Get issue JSON
      1. GET https://<instance><key>
    2. Extract the fields->attachment array
    3. For each attachment
      1. if mimeType in (video/mp4, video/avi, video/x-ms-wmv)
        1. Delete the attachment
          1. DELETE https://<instance><attachment-id>

It's in testing. I might have to add a sleep to avoid hitting API rate limits. 

Like Joseph Hani likes this

Hey Bill !! 
Thank you for your help! I really like your code! It could be useful for us :) 

I don't know the size of your instance but we are also trying to manage all the attachments in our project. 

If you like, I have opened a question in the community but the code could also help you. 

The script work in REST API also, it exports all the information about the ticket with attachment. Mainly, we are interested in the size and creation date of the ticket. And if we see tickets with a big size we bulk delete those tickets with Automation.


Also, if you have any idea of how i could improve the script that would be super great ! 


Have a nice day @Bill_Stephens 



Suggest an answer

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

👋 Looking for 15-20 volunteers to test Atlassian training content

Hi everyone! Are you interested in beta testing Atlassian University’s newest (unreleased!) training course? We’re looking for 15-20 volunteers to test our newest training course, Basic reporting...

870 views 25 28
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