Scriptrunner versionMatch function with regular expression for multiple matches

I am trying to query all issues that are contained in all 5er and 6er versions of our product by using the versionMatch function supplied by Scriptrunner.

However the following regular expression does not work.

affectedVersion in versionMatch("(^6.*)|(^5.*)")

It returns more versions than just the two provided versions.

1 answer

0 votes
Thomas Schlegel Community Champion Apr 19, 2017

Hi Christian,

your JQL works fine in my Jira. Could you please give us an example of the false version name? 

my mistake, i forgot to escape the dots. Thanks, anyway!

Thomas Schlegel Community Champion Apr 20, 2017

you're welcome :-)

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in United States

Topic Tuesday: What's your favorite topic?

Good morning All, Our goal is to get you into the habit of while enjoying your favorite morning drink you are checking the NOVA "space" for topics and comments. Your input is really needed and...

57 views 4 0
View post

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