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

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

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

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published yesterday in Off-topic

Get to know our Atlassian User Group Leaders from Bengaluru, India

Meet @Dinesh Dhinakaran, @Vishnu Vasudeva, @Rajeev Verma, and Jamshid Nalakath: Our extraordinary AUG leaders from Bengaluru, India. These four work together to strengthen the bonds of their local co...

152 views 0 4
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