Is there a way to search for an exact value on a version field?

If I have a version field (e.g affectedVersion), which can store multiple values, and I want to find all issues where there is a specific combination of values (not just issues that contain any of them), can I do it?

e.g.

Issue 1, affectedVersion = 1.0

Issue 2, affectedVersion = 1.0, 2.0

Issue3, affectedVersion = 2.0

 

Is there a search that I can do to identify issues where the affectedVersion only contains "2.0" (i.e. I want to return Issue 3, but not Issue 2)?

Thanks

3 answers

1 accepted

This widget could not be displayed.

You would need to filter on version 2.0 and exclude in the same query all other versions (possible if you have only few)

fixversion = "2.0" and not fixversion in ("1.0","1.1","1.2",....)

But since the second expression can contain many versions I don't think it is feasable.

Thanks - yes, unfortunately I have a lot of versions, so while this might be feasible as a one off, it will be difficult to use longer term.

Yes, that's why it is not feasibel. With each new version you would need to change the filter. So since scriptrunner isn't available on JIRA Cloud, I guess you are stuck.

This widget could not be displayed.

Thanks.

Is that available for the cloud version? I can't see it in the marketplace.

Unfortunately no . This plugin is not available for cloud.

This widget could not be displayed.

You have to use script runner plugin for that,

It gives an option to look for exact match

Ex:

project = ABCD AND issuetype = Epic AND fixVersion in versionMatch("Version 1.1")

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted yesterday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

63 views 1 0
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