Scriptrunner: Unable to find JQL function 'versionMatch(RC.*)'.

I'm running a standalone 5.2.2 Jira server with ScriptRunner 2.1.3. I'm using script runner to run validators in my workflow so I believe it is installed correctly.

As a Jira admin, I peruse the "Scripted JQL Functions" menu and I 'Preview' the versionMatch function. I entered some regex expressions for my version and it returned the versions I was expecting.

From the Advanced Search page, I enter the simple query:

fixVersion in versionMatch("13.2.*")

and it returns the error:

Unable to find JQL function 'versionMatch(13.2.*)'.

Do I have to enable something?


7 answers

1 accepted

0 votes
Accepted answer

Thanks for responsing Jamie.

I decided to disable and then enable versionMatch from the ScriptedJQLFunctions page and it is now recognizing this JQL function. A possible restart of the server may have fix it but we are in production so that is always a last resort.

Thanks for time.

I have done a ReIndex as well

Hi check on your Admin Section --> Script Runner --> Script JQL Functions --> versionMatch

In order to work properly this has to be Enabled.

it is Enabled. Cut & paste from function panel:

versionMatch File/url: bundle://102.0:1/com/onresolve/jira/groovy/jql/EntityMatch.groovy (View Source)

Operations: Delete Preview Enable Disable
Match the version name by reg exp

I'm doing some tests in my instance and I'm not having problems with this... Reindex done... Maybe a server restart? but such a pain... You could contact @Jamie for this case...

In fact, @Jamie doesn't do support but since this could a bug on the plugin he might take a look here if he has time...

Can this issue by forwarded to Jamie or do I reenter on his page?

I do do support!! Sometimes I feel like I do nothing but support ;-)

Oops! My bad, I was just referring to plugins info in marketplace ;)

Works for me. Seems odd that the error displays the parameter. Are you putting some kinds of quotes in?

We're also experiencing the same symptom for all Script JQL functions.
Jira Server version: 5.2.2
- all functions are enabled in admin panel
- re-started server
- re-indexed content
- all functions work as expected in preview panel of admin screen

Any other pointers as to how to get the functions recgnized from issue Filter screen?

@Jamie Echlin [Adaptavist], we face the same problem in version 2.1.17 for JIRA 6.2.5

The problem occured when the JIRA  server is rebooted

Do you have a fix for this?



If you're not using IE8, can you try upgrading to the latest version, 3.x.x... which you get from marketplace.

wow, quick reply! Thanks! is that compatible with Jria 6.2.x?

@Jamie Echlin [Adaptavist] thanks for your reply. not sure if you get notified when I reply your comments. My question is: is 3.xx compatible with jira 6.2.x? If it is not tested against Jira 6.2.x, we will do our own test before upgrade to 3.x.x.

FYI, in case anyone else runs into this issue we found that while our stage instance had 116 plugin modules listed, our production instance only displayed 83.  After uninstalling and reinstalling the plugin all modules now appear and the versionMatch queries seem to be working fine now.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,883 views 19 22
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