versionMatches() from JQL Tricks plugin not working

I'm playing with the versionMatches function from the Tricks plugin, and it doesn't seem to be working. (I need to pull a report once a month for all of my developer's projects (around 11) and all of the releases for each project (between 1 and 4 per project per month), so doing this without some fancy functions is a major time sink.)

Here's a screenshot of the base query to show that we have data and what our fixversion looks like:

And then adding the function to the query, which gives me no results:

What am I doing wrong?

1 answer

1 accepted

1 vote

Try something like this:

project in (BILLGTWY) and fixVersion in versionMatches(".*Jan/2012.*")

Bascially, it takes a Java regex as input.

Sorry, missed the last ')'. Updated the answer. try that!

Ah, perfection, thank you very much!

Or versionMatches(".*Jan/2012\\)") if it always ends with ')'

Ugh, the documentation did mention regex but the example had it as a simple string. But I tried your syntax and it's still not finding any tickets.

You can also do ".*Jan/2012.*" since it looks like the regex is being anchored.

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
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

243 views 1 18
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