VersionMatches() JQL Help

Hello all,

I'm working to develop a single query that allows me to pull all 8 projects at one time and I'm using Version Matches. Currently we have it developed to be fixVersion in versionMatches(".*23/2013\\)") but the final would look like this

Currently the projects are listed as this 2.4.1(5/23/13)

versionMatches(".*May/2013\\)")

The question I'm wondering is it possible to develop something that would go Month/Day/Year and I could only ask for Version Matches to be asking for the Month/Year? Or is that not possible? What I'm getting at is that could it be like above but have it skip over the day section?

Thank you!

3 answers

1 accepted

This widget could not be displayed.

Found the solution to the answer.

versionMatches(".*6/\\d{2}/2013\\)")

Figured I'd post this for others who may run into the same problems I did

This widget could not be displayed.

Hi Justin,

Well your month is 5 not May and the year is 13 not 2013 so the regex pattern needs to be like

.*\(5\/.*\/13\)

Cheers, Udo

Hi Udo,

So when I copied it over what you provided me(By the way thank you very much for the help) it provided an error saying that the \ was an illegal JQL escape sequence. Is it due to me copying it over?

Thanks!

Justin

Hi Justin,

try and put it in quotes

".*\(5\/.*\/13\)"

Cheers, Udo

Hi Udo,

I tried that and still got the same issue as well. It seems to be having an issue when it comes to the \/ section as well as the \ before the parenthesis

Hi Justin,

yeah, seems to be a genaral problem escaping characters. See

https://jira.atlassian.com/browse/JRA-23235

Sorry

This widget could not be displayed.

Hi Udo,

So when I copied over after the 1 it came up with an error stating that \ is an illegal JQL escape sequence. Is it something that's happening from me copying it over?

Thanks!

Justin

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in Teamwork

What teamwork quotes inspire you?

Hey everyone! My name is Natalie and I'm an editor of the Atlassian Blog and I've got a question for you: What's your favorite quote about teamwork?  We've compiled a list here, along with...

178 views 18 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