Is it possible to create a report or some app that can tell me which projects are taking up the most space in my instance? For example, the xpto project has 5k attachments, the xrth project has 2k attachments, and so on.
Hi @jovanio_junior , Greetings!
A suggestion ticket is already in place with Atlassian. You can vote for it here -> JRACLOUD-75922
Also, you can refer to the discussion here -> https://community.atlassian.com/t5/Jira-questions/I-can-t-find-where-to-see-how-much-storage-our-project-has-used/qaq-p/2042479
BR,
Gaurav
@jovanio_junior As Gaurav mentioned, there is no out-of-the-box way to determine which projects take up the most space in your instance unless you install a third-party app, which would simplify this process significantly. However, if you're comfortable with programming, you can leverage the Jira Expression API to evaluate attachment counts and their sizes for each project.
The Jira Expression API allows you to execute custom logic on a set of issues retrieved via JQL. Here’s how you can approach this problem:
Understand Jira Expressions:
Set Up the Query:
project = "xpto"
.nextPageToken
.Jira Expression:
Below is an expression to calculate the total number of attachments and their combined size (in MB):
issues.reduce((result, issue) => {
let issueAttachmentCount = issue.attachments.length;
// Calculate attachment size in megabytes
let issueAttachmentSize = issue.attachments.reduce((size, attachment) => size + attachment.size, 0) / 1048576;
return {
totalAttachments: result.totalAttachments + issueAttachmentCount,
totalSize: result.totalSize + issueAttachmentSize
};
}, { totalAttachments: 0, totalSize: 0 })
This expression sums up the number of attachments across all issues and calculates the total size of attachments in MB.
4. Iterate Across Projects:
project = "<project-key>"
) and aggregating the results.Using the above logic, you will receive response for each request where the value attribute will provide the required data:
This method, while requiring some coding effort, can give you detailed insights into how much space each project is consuming without relying on third-party apps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.