It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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
Answer accepted

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
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published Apr 09, 2019 in Portfolio for Jira

Portfolio for Jira 3.0 is here!

The wait is over... Portfolio for Jira Server and Data Center 3.0 is now officially here! Platform releases offer Atlassian an opportunity to shift our strategy, make bold predictions about t...

1,330 views 14 25
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