Forums

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

filter by defects by most populated Affects version field

jorge.soares
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!
November 7, 2019

Hi everybody,

I'm trying to find out which are the JIRA issues that are still open and have been there since long (not fixed yet by the development team).

A bit of background, whenever an issue is affecting a new sprint, we populate the field: Affects Version/s in JIRA. For example, I can have the below case:

issue1: Affects Version= Sprint 1

issue2: Affects Version = Sprint 1, Sprint 2, Sprint 3

issue3: Affects Version = Sprint 2, Sprint 3, Sprint 5, Sprint 6, Sprint 7, Sprint 8

I am looking for a filter/query that returns me the 'issue3' since it is the one that contains more strings in the 'affects version' field.

Are you aware of any query syntax that allows that?

Many thanks in advance for your help.

4 answers

1 accepted

0 votes
Answer accepted
Jack Brickey
Community Champion
November 7, 2019

There isn’t a way to do this natively. You could consider an addon like Scriptrunner or similar. You could also export a report to CSV and use excel to obtain this info. Basically you want to create a field and count the number of entries then sort the list by the count field descending.

1 vote
Muhammad Ramzan(Atlassian Certified Master)
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.
November 7, 2019

you can use  JQL Search Extensions for Jira & reports  plugin to get the required results. As with simple JQL you can't

 

If you have installed JQL Search Extensions for Jira & reports  , following query will get you the issue3 

 

issue in affectedVersionCountGreaterThan("2")

it will return all issues where affectedversion have more than 2 values.

 

If you need to get an issue with specific count then you can use following query.

issue in affectedVersionCountEqualTo("3")

 

Reference:

https://jqlsearchextensions.atlassian.net/wiki/spaces/SEARCH/pages/30497099/JQL+Reference+Server#JQLReference(Server)-AffectedVersionsCountLessThan

0 votes
jorge.soares
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!
November 8, 2019

Thank you all for your answers. I've decided to go with the Excel workaround since my JIRA instance does not have the suggested plugins. Cheers!

0 votes
Ismael Jimoh
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.
November 7, 2019

Out of the box, there is no count function in JQL.

Look at the marketplace for any addon with this feature or if not, develop something yourself using an add-on like scriptrunner.

Cheers

Suggest an answer

Log in or Sign up to answer