I want to be able to sort issues by the number of attachments

Hazel Elgart June 5, 2014

How can I sort a list of issues by the number of attachments to per issue?

2 answers

1 accepted

1 vote
Answer accepted
Mehmet Kazgan
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, 2014

I think it is not possible to do that from JQL. Jamie Echlin's script runner has an issue function that can help, also you can create a custom field to query.

Here is some info here:

https://answers.atlassian.com/questions/150331/jql-query-to-get-issues-with-attachments

Hazel Elgart July 1, 2014

Thanks Mehmet. I'd love a solution that non-admins could use.

How would the custom field work?

0 votes
Mehmet Kazgan
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 1, 2014

Sure Hazel. Admin would create a field called "Number of Attachments" and update them manually accordingly. Then you can query on those. Unfortunately, there is not a way to automatically filter/order issues by the number of attachments OOTB.

Hazel Elgart July 1, 2014

Thanks. I haven't done anything with SQL queries yet, but looks like I'll need to give it a try.

Suggest an answer

Log in or Sign up to answer