Jira filter to count the number of attachments

Nicoleta Burz
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 2, 2024

Hello, 

 

There is this new Jira update that a ticket cannot contain more than 15 attachments, or the overall size limit is not exceeding 100 MB. 

 

Is there any Jira filter that can count how many attachments are in a ticket and highlight those that are exceeding the number?

 

Thanks!

3 answers

0 votes
Charlotte Santos -Appfire-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 3, 2024

Hi @Nicoleta Burz

I’m Charlotte, a support engineer at Appfire, and I’m here to help you.

Sadly, natively, you’ll not be able to count attachments in an issue.

However, in the app where my team works, JQL Search Extensions for Jira, you can use the query below to find all issues with more than 15 attachments:

attachmentsCount > 15

Please contact our support if you have any other questions about this query.

We’ll be happy to help you! 😉

Inna S
Contributor
November 14, 2024

Hi @Charlotte Santos -Appfire- 

the count is wrong on our site:

* when there are no attachments it says there is 1.0. Yes, with a decimal point.
* when there is 1 attachment it says there is 0
* when there are more than 1 attachments, the number they display is X-1

 

Looks like you start counting from zero from the first attachment. 

Naturally, when you remove all attachments you get to -1, and then appear to take the modulus of it to arrive at '1'.

This is totally messed.

0 votes
Hannes Obweger - JXL for Jira
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
July 2, 2024

Hi @Nicoleta Burz

welcome to the community!

If you're open to solutions from the Atlassian Marketplace, this would be easy to do with the app that my team is working on, JXL for Jira.

JXL is a full-fledged spreadsheet/table view for your issues that allows viewing, inline-editing, sorting, and filtering by all your issue fields, much like you’d do in e.g. Excel or Google Sheets.  It also comes with a long list of so-called smart columns that aren’t natively available, including the number of attachments, the attachments size, and several more attachments-related columns.

This is how it looks in action:

number-of-attachments.gif

As you can see above, you can easily sort and filter by your smart columns; you can also use them across JXL's advanced features, such as support for (configurable) issue hierarchies, issue grouping by any issue field(s), sum-ups, or conditional formatting.

This all just works - so there's no scripting or automation whatsoever required.

Any questions just let me know,

Best,

Hannes

0 votes
Sagar
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 2, 2024

Hi @Nicoleta Burz Welcome to the Atlassian community.

Can you let me know what hosting option you used for your Jira, Cloud or Jira Datacenter

as there is no easy way to get the attachments counts in the Jira and you may need to create a scripted to capture the attachment count and use that field in the JQL search and based on that you can create an automation rule to send an mail when the attachment count is more than 10. searching based on the size will be tricky.

Suggest an answer

Log in or Sign up to answer