How to select issues with only one Fix version

Is there an ability to select all issues that have particular fix version but excluding issues with that one and other fix versions.

For exmaple, I have issue #1 with fixVersion = Rel1, Rel2 and issue #2 with fixVersion=Rel1.
I need query and return issue #2 only.

Is this possible using advanced searching?

4 answers

1 accepted

ok here we go:

go get jamies script runner plugin first.

https://marketplace.atlassian.com/plugins/com.onresolve.jira.groovy.groovyrunner

with this one installed you can query exact matches as described here:

https://jamieechlin.atlassian.net/wiki/display/GRV/Scripted+JQL+Functions#ScriptedJQLFunctions-issueFieldExactMatch%28subquery,fieldname,regexp%29

one examle for you:

i created two test issues.

#1 with fixVersions = v1,v2

#2 with fixVersions = v2

this is the JQL to use in advanced search to grab #2 only..

issueFunction in issueFieldExactMatch("project = TEST", "fixVersions", "[v2]")

cheers

To add - I would like to avoid counting all versions as in and not in.
So query
fixVersion in("Rel1") and fixVersion not in ("Rel2")
is not desirable.

What if you choose fixVersion = "Rel1" ? Will this show issue #1 too?
I see. So you're asking for a query with an exact match. I will try something out and then let you know...

sure it does - that's the problem

Thank you, will take a look. It's bad there is no standard way in JIRA to do exact match query...

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Amir Kazemi
Posted an hour ago in Jira

We want to know what Jira Service Desk apps you're using!

Hi Community! My name is Amir and I’m on the Jira Service Desk product marketing team at Atlassian. Our team would love to understand how you’re leveraging our ecosystem for Jira Service Desk. Wha...

9 views 0 2
Join discussion

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