Uploaded image for project: 'Jira Platform Cloud'
  1. Jira Platform Cloud
  2. JRACLOUD-80857

Ability to retrieve total count and size of attachments on instance

    • 39
    • 47
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      It should be possible to retrieve the total number and size of all attachments on an instance.

      Workaround

      You can get the total count (but not size) of attachments by doing the following:

      1. Navigate to "System" (by clicking the cog symbol) > "Backup Manager" > And click "Create backup for cloud"
      2. Download the file when complete. Unzip the folder and open the "entities.xml" file.
      3. In the "Database statistics" section you can see the Attachments count:

      Note: Thanks to Kian for this workaround.

            [JRACLOUD-80857] Ability to retrieve total count and size of attachments on instance

            Matt Doar (Adaptavist) added a comment - https://support.atlassian.com/security-and-access-policies/docs/track-storage-and-move-data-across-products/ has details of how to find the storage for your product in Cloud

            Nena Kruljac added a comment - - edited

            Is it also possible to add total count and size of attachments per Jira project (here your-instance/jira/settings/system/performance/metrics/projectcleanup or anywhere)?

            It would be useful to view which projects have the most attachments and which are the biggest by total attachments size, in order to do some cleanup (for example archive at first the biggest projects, in order to perhaps make backup faster).

            Nena Kruljac added a comment - - edited Is it also possible to add total count and size of attachments per Jira project (here your-instance/jira/settings/system/performance/metrics/projectcleanup or anywhere)? It would be useful to view which projects have the most attachments and which are the biggest by total attachments size, in order to do some cleanup (for example archive at first the biggest projects, in order to perhaps make backup faster).

            Kevin Sanghvi added a comment - https://getsupport.atlassian.com/browse/JST-918074#

            23ef3e30d63c

            You can basically use

            /rest/api/2/search?fields=attachment 

            Iterate through the issue list and count the number of all attachments for it, but you need iterate over all pages.

            Michael Aglas added a comment - 23ef3e30d63c You can basically use / rest /api/2/search?fields=attachment Iterate through the issue list and count the number of all attachments for it, but you need iterate over all pages.

              Unassigned Unassigned
              23ef3e30d63c Anusha Rutnam
              Votes:
              41 Vote for this issue
              Watchers:
              33 Start watching this issue

                Created:
                Updated: