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

Brent Webster
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 22, 2013

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?

Thanks,Brent

7 answers

1 accepted

0 votes
Answer accepted
Brent Webster
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 22, 2013

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.

0 votes
Tom Bell February 3, 2017

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.

0 votes
Leon Liu (ease solutions) April 12, 2015

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

Thanks

Leon

JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 12, 2015

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

Leon Liu (ease solutions) April 12, 2015

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

Leon Liu (ease solutions) April 12, 2015

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

0 votes
Fred Walton June 26, 2013

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?

0 votes
JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 22, 2013

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

0 votes
Ramiro Pointis
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 22, 2013

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

In order to work properly this has to be Enabled.

Brent Webster
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 22, 2013

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

Ramiro Pointis
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 22, 2013

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

Ramiro Pointis
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 22, 2013

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

Brent Webster
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 22, 2013

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

JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 23, 2013

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

Ramiro Pointis
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 23, 2013

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

0 votes
Brent Webster
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 22, 2013

I have done a ReIndex as well

Suggest an answer

Log in or Sign up to answer