Forums

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

Scriptrunner versionMatch function with regular expression for multiple matches

Christian Körner April 19, 2017

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

Suggest an answer

Log in or Sign up to answer
0 votes
Thomas Schlegel
Community Champion
April 19, 2017

Hi Christian,

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

Christian Körner April 20, 2017

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

Thomas Schlegel
Community Champion
April 20, 2017

you're welcome :-)

TAGS
AUG Leaders

Atlassian Community Events