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
Accepted answer

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
Community showcase
Published Nov 29, 2018 in Jira

How to set up an incident workflow from the VP of Engineering at Sentry

Hey Atlassian community, I help lead engineering at Sentry, an open-source error-tracking and monitoring tool that integrates with Jira. We started using Jira Software Cloud internally last year, a...

1,080 views 0 8
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