REST endpoint created in JIRA 7 does not work in 6.4.2

Vidula Kulkarni November 26, 2015

I have a REST endpoint created in JIRA 7.0 that works perfectly fine. When I copied the script to JIRA 6.4.2, I get the following warning/error in logs:

/rest/scriptrunner/latest/canned/com.onresolve.scriptrunner.canned.common.StaticCompilationChecker [scriptrunner.runner.customisers.MonkeyPatchModuleFactory] This is JIRA Agile prior to the most recent supported version, functions won't work

What do I need to do to get it working in 6.4.2 JIRA?

 

3 answers

0 votes
bkolics January 11, 2016

I see the exact same issue in JIRA 6.4.11. I have recently upgraded to the 4.1.3.7 version of the ScriptRunner plugin. I tried to shut down JIRA, remove the JIRA_HOME/temp as well as JIRA_HOME/work directories. What am I doing wrong? (JIRA Agile version is 6.6.51). Thank you.

0 votes
Mark McCormack (Adaptavist)
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.
November 27, 2015

Vidula,

It is likely you are not using the same version of JIRA Agile in your 6.4.2 instance of JIRA. Could you please check you are using the latest version (i.e JIRA 6.7.7 or above)?

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.
November 27, 2015

That may be the case and indeed it would mean that certain functions could not be used, but he shouldn't be seeing that error when developing a rest endpoint. SR can be used fine both with supported versions of JA, and without it completely, or with an old version. Just in those last two cases certain JQL functions won't be available.

Vidula Kulkarni November 29, 2015

Thank you for your response Jamie and Mark. I am not getting the error any more and have the end point working. I had to try a simple script first and then the end point script started working fine. I still dont know why I got the error initially and then didnt get it again...

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.
November 27, 2015

I'm not really sure why you are getting that message, I presume it's in the logs and an overlay on the script? 

It should still actually work even if the static compilation checker is falling over.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events