Forums

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

JQL to filter out archived fixVersions

matthew_bache January 6, 2023

Is there a way in native JQL (we do not have scriptrunner) to find tickets in released fixVersions, but not in archived fixVersions? It would be something like this:

project = DATA AND fixVersion in releasedVersions() AND fixVersion not in archivedVersions()

The requirement is to report on only tickets that have been released in recent and active fixVersions. We archive a fixVersion once a new fixVersion has superseded it.

Thanks

2 answers

1 accepted

4 votes
Answer accepted
Benjamin
Community Champion
January 6, 2023

Hi @matthew_bache ,

 

Unfortunately, There isn't a JQL for this natively. 

A ticket is raised for this:

https://jira.atlassian.com/browse/JRACLOUD-10692

 

The status is showing gathering interest.

 

Thanks,

 

Ben

matthew_bache January 6, 2023

Thanks, Ben.

Like Benjamin likes this
1 vote
Bill Sheboy
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.
January 6, 2023

Hi @matthew_bache 

How many issues are you expecting in the result set? 

If it is less than 100 you may find the issues with an automation rule.  You could run this rule whenever you need to know the issues, or even run it on a schedule (or other trigger).  Such a rule could be:

  • trigger: let's use scheduled, but it could be manual if you wish
  • action: lookup issues with this JQL, substituting in your project name, and any other criteria you wish
project = myProjectName AND fixVersion IN releasedVersions() AND statusCategory = Done
  • action: log the results, or send an email with the keys of the issues by filtering the lookup as follows:
The issues in released versions, not archived are: 
{{#lookupIssues}}{{#if(not(fixVersions.archived))}}{{key}}{{/}}{{^last}}, {{/}}{{/}}

 

How this works...

Kind regards,
Bill

matthew_bache January 9, 2023

Hi @Bill Sheboy 

Thanks for the great solution. However, it's likely that > 100 issues would meet the criteria, so that solution won't work for us. 

Kind regards

Matt

Bill Sheboy
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.
January 9, 2023

Matt, after reading another posting I learned they have loosened the limits up a bit and so a single query/trigger can do up to 1000 issues, and the total for a rule (if that 1k referenced others) is 5000.  There are other limits for processing time, but the 100 limit seems to be old info; sorry about that!

https://support.atlassian.com/cloud-automation/docs/automation-service-limits/

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events