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

This widget could not be displayed.

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.

This widget could not be displayed.

I have done a ReIndex as well

This widget could not be displayed.

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 ;)

This widget could not be displayed.

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

This widget could not be displayed.

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?

This widget could not be displayed.

@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.

This widget could not be displayed.

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
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

143 views 1 3
Join discussion

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