Need help with Jira error: "The operator '~' is not supported by the 'fixVersion' field"

We use Jira v4.4.3. I need to run a report that lists all of my developers' tickets that are close/resolved for each month's releases. Our releases (fixVersion) seem to be configured as a string value in the database, because they're formatted like this: "1.34.0 (7/Jun/2012)". My challenge is that I have many projects (11) and many releases (up to 21 in all) within each month, so it takes me forever to type them all into one query. I'm currently running 11 filters, one for each project, and then combining the results in Excel which is just as time consuming. It sure would save me time if I could format ONE query that looks like this:

project in (BILLGTWY, CG, CI, FIN, GC, JCA, LSI, MCUP, PEM, SG, TE) AND fixVersion ~ "Jun" AND status in (Resolved, Closed)

but that gives me this error:

The operator '~' is not supported by the 'fixVersion' field.

Help? Why does the ~ operator not work for this field?

2 answers

1 accepted

Accepted Answer
4 votes

Seems you are looking for a regex search in the fixVersion field. As you correctly mentioned, ~ operator is not supported.

have a look at JQL Tricks Plugin. It has a method to search fixVersion using regex.

Another alternative would be to create a scripted custom field using the free Script runner plugin. The Groovy code behind the field would have to extract the month part of issue.getFixVersions() and return this. Then you could search for the month value in this scripted custom field. Though this solution requires some programming ...

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Sep 18, 2018 in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

24,726 views 2 7
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