Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

2GB Limit Reaching

Teena I'm New Here Dec 18, 2020

We are currently reaching 2GB limit in JIRA and would like to get a "List of JIRA Tickets with largest files" This will enable us to clean up for some space.

Please note the information can only be retrieved from the backend database which is only accessible by Altassian staff.

Teena George


1 answer

1 vote

This does indeed need to go to Atlassian support, but they do not do support work for free or starter Cloud instances, and you will simply be redirected back here for help.

I'm not aware of any way to extract this data from Jira directly.   I think the best you could do would be to write a script that scrapes all of your issues over the REST API and reads each one for attachment information.

Yes, and...

You may find your issues having attachments using a query:

project = myProject AND attachments IS NOT EMPTY

And then iterate over them to get the attachment information using the REST API that Nic suggests:

Thank you Nic and Bill.

Using linqPad i am able to use REST API to get an attachment detail given i know the attachment id.

I have a couple of issues:

1. authentication.  Using a token API  i am getting 401 unauthorized. (See code below).  what is wrong with how i am authenticating ? is email and wewewewewewe  is the API token

2. assuming i can get a list of all my jira tickets, how can i get a list of attachment ids for each issue ?  are there APIs for getting list of attachment for a given issue id ? 

void Main()
SortedSet<Result> myResult = new SortedSet<Result>(new AttachmentSizeComparer());
int[] ids = { 23623, 23625 };
var base64EncodedAuthorization = Convert.ToBase64String(Encoding.ASCII.GetBytes(""));
foreach (int i in ids)
using (System.Net.WebClient webClient = new System.Net.WebClient())
webClient.Headers.Set("Authorization", "Basic " + base64EncodedAuthorization);
var attachUrl = "" + i;
var jsonResult = webClient.DownloadString(attachUrl);
Attachment att = JsonConvert.DeserializeObject<Attachment>(jsonResult);
var newRes = new Result(i, att.Size);


Teena I'm New Here Jan 04, 2021

Hi, Would anyone be able to advise on the above .

Suggest an answer

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

Presenting the "Best of 2020" Jira Software roundup!

Catch up with Atlassian Product Managers in our 2020 Demo Den round-up! From Advanced Roadmaps to Code in Jira to Next-Gen Workflows, check out the videos below to help up-level your work in the new ...

7,104 views 8 28
Join discussion

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