Jira filter to count the number of attachments
Asked by Nicoleta Burz:

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!


Answers:
author: Charlotte Santos -Appfire-
body: **Hi [@Nicoleta Burz](/t5/user/viewprofilepage/user-id/5534314)**

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](https://marketplace.atlassian.com/apps/1214791/jql-search-extensions-for-jira-reports?hosting=cloud&tab=overview&utm_source=atlassiancommunity&utm_medium=listinglink&utm_campaign=mauricio), you can use the query below to find all issues with more than 15 attachments:

```
attachmentsCount > 15
```

Please contact our [support](https://appfire.atlassian.net/servicedesk/customer/portal/11) if you have any other questions about this query.

We'll be happy to help you! ?


author: Hannes Obweger - JXL for Jira
body: Hi [@Nicoleta Burz](/t5/user/viewprofilepage/user-id/5534314)

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](https://marketplace.atlassian.com/apps/1224710?hosting=cloud&tab=overview&utm_source=atlassian-community&utm_medium=referral&utm_content=2742260).

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](https://community.atlassian.com/t5/image/serverpage/image-id/333067i26A5A09B3871E627/image-size/large?v=v2&px=999 "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


author: Sagar
body: Hi [@Nicoleta Burz](/t5/user/viewprofilepage/user-id/5534314) 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.


Tags: attachment

jira-unknown-hosting-type

quick-filter

unknown-hosting-type