Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the number of attachments I have in a project

Baheej Al-Khatib
Contributor
June 5, 2019

I know there is a JQL query to find how many issues in a project have attachments. 

(project = "Project Name" AND attachments IS NOT Empty)

 

I was wondering if there was a way to instead show exactly how many attachments there are. Or a way to query just for attachments.

1 answer

1 accepted

0 votes
Answer accepted
Payne
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.
June 5, 2019

There exists a free add-on that includes a custom field of "Number of Attachments" that may work for you.

https://marketplace.atlassian.com/apps/5142/toolkit-plugin-for-jira?hosting=server&tab=overview 

It can be used to find issues with a certain number of attachments, e.g.

project = BR and "Number of Attachments" > 0

and it can also be included as a column in the result set.

jira.jpg

Baheej Al-Khatib
Contributor
June 5, 2019

Thank you very much. I was able to download the plugin and include the number of attachments field on my issues. However, when I try to create a JQL query like yours I am not getting any results. It says there are no issues that match it even though I have issues that have attachments. 

Payne
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.
June 6, 2019

A re-index will solve that problem. See step 6 in their documentation at https://ecosystem.atlassian.net/wiki/spaces/JTOOL/overview

Cheers,

Payne

Like • Baheej Al-Khatib likes this

Suggest an answer

Log in or Sign up to answer