The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

VersionMatches() JQL Help

Justin Partlow
June 28, 2013

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Answer accepted
Justin Partlow
July 1, 2013

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

1 vote
Udo Brand
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
June 28, 2013

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

Justin Partlow
June 30, 2013

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

Udo Brand
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
June 30, 2013

Hi Justin,

try and put it in quotes

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

Cheers, Udo

Justin Partlow
June 30, 2013

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

Udo Brand
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
June 30, 2013

Hi Justin,

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

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

Sorry

0 votes
Justin Partlow
June 30, 2013

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

TAGS
AUG Leaders

Atlassian Community Events