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

Sharon Conger Aug 29, 2012

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
Jobin Kuruvilla [Go2Group] Community Leader Aug 29, 2012

Try something like this:

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

Bascially, it takes a Java regex as input.

Jobin Kuruvilla [Go2Group] Community Leader Aug 29, 2012

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

Sharon Conger Aug 29, 2012

Ah, perfection, thank you very much!

Jobin Kuruvilla [Go2Group] Community Leader Aug 29, 2012

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

Sharon Conger Aug 29, 2012

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.

Norman Abramovitz Aug 29, 2012

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 in Next-gen

Introducing subtasks for breaking down work in next-gen projects

Teams break work down in order to help simplify complex tasks. This is often done iteratively, with tasks being broken down into smaller tasks and so on until the work is accurately captured in well-...

1,054 views 13 15
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you