jql and multiple fixversion

Hi Guys, 

I have, what I'd like to think is a unique problem, I've found some references here to similar issues but they differ enough that I can't seem to extend the strategy they use to resolve my problem. 

In our JIRA project we have multiple naming conventions for fix version (no idea why) some versions adhere to this strategy eg. and others conform to where aaa could be any sequence of letters etc... Also, there are occasions where 1 issue could have been resolved in various of the different conventions. So management would like to get a set of issues that falls in a range conforming to the first convention. Is there a way for JIRA to pick issues that have only 1 fix version, excluding the issues that have more than 1 that do not fall in the range of specified versions? there are so many different versions it's not very practical to use "IN" and "NOT IN" 

I installed ScriptRunner and came pretty close to what I wanted but I still get some issues that should not be included


Project = TEST and fixversion in (versionMatch("^3.*")) and fixVersion >= "" and fixversion < ""

I got an issue that included the following in it's fix version:, 10.3.9_DAS_3.4.0.10,

It makes sense that it would pick it up, but how could I go about excluding it since is there? I cant think of any function that counts how many fixversions an issue has or excludes issues that have a fixversion outside the range.


Thanks and Regards, 




1 answer

I do something similar but using the Python JIRA module (which is just a wrapper to the REST API). Of course if you need this to be in the JIRA UI then this solution really won't help you. What I do is basically:

from jira.client import JIRA
jira = JIRA(server, user, pass)
results = jira.search_issues(&lt;my_jql&gt;)
for issue in results:

	valid_version_list = []
	fix_version_list = issue.fields.fixVersion
	for version in valid_version_list



Suggest an answer

Log in or Sign up to answer
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

1,294 views 5 10
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you