Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,362,003
Community Members
 
Community Events
168
Community Groups

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 Leader 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 Leader Apr 20, 2017

you're welcome :-)

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira

Online AMA this week: Your project management questions answered by Jira Design Lead James Rotanson

We know that great teams require amazing project management chops. It's no surprise that great teams who use Jira have strong project managers, effective workflows, and secrets that bring planning ...

214 views 1 6
Read article

Atlassian Community Events