Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Problems loading custom JQL in jira using scriptrunner

Nancy Belser
Contributor
February 27, 2018

I am converting my old custom JQL script to the new scriptrunner format. I made changes to the script according to documentation and have placed the script in the folder "E:\atlassian_home\Application Data\JIRA\scripts\com\onresolve\jira\groovy\jql".

I ran the scan utility and was able to find and address compilation errors. Once I got through those errors I ran scan again and got an error in the log, plus all of the bundled JQL disappeared. I was able to get the bundled JQL back by removing my script and then disabling/reeabling the plugin. I am at a loss as to where to go now. I will attach the relevant log entries in an attachment. FYI, I also tried to add a basic empty JQL script and had the same problem. I did remove my own JQL script before I tried the empty script.

 

Here is the beginning of the stack trace:
2018-02-26 13:48:53,056 http-nio-8080-exec-23 ERROR nancy.belser 828x57971x2 hyekzv 172.17.176.150,172.17.85.251 /rest/scriptrunner-jira/latest/jqlfunctions/list [c.a.p.r.c.error.jersey.ThrowableExceptionMapper] Uncaught exception thrown by REST service: com.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
com.atlassian.util.concurrent.LazyReference$InitializationException: com.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:149)
at com.atlassian.util.concurrent.LazyReference.get(LazyReference.java:112)
at com.atlassian.util.concurrent.ResettableLazyReference.get(ResettableLazyReference.java:92)
at com.atlassian.util.concurrent.Supplier$get.call(Unknown Source)
at com.onresolve.scriptrunner.runner.JqlFunctionsManagerImpl.getScriptedFunctions(JqlFunctionsManagerImpl.groovy:167)
at com.onresolve.scriptrunner.runner.rest.jira.JqlFunctionsEndpoint.listJqlFunctions(JqlFunctionsEndpoint.groovy:136)
at com.onresolve.scriptrunner.runner.rest.jira.JqlFunctionsEndpoint.getScriptFunctionList(JqlFunctionsEndpoint.groovy:95)
... 3 filtered
at java.lang.reflect.Method.invoke(Method.java:498)
... 19 filtered
at com.atlassian.plugins.rest.module.RestDelegatingServletFilter$JerseyOsgiServletContainer.doFilter(RestDelegatingServletFilter.java:154)
... 1 filtered
at com.atlassian.plugins.rest.module.RestDelegatingServletFilter.doFilter(RestDelegatingServletFilter.java:68)
... 41 filtered
at com.atlassian.web.servlet.plugin.request.RedirectInterceptingFilter.doFilter(RedirectInterceptingFilter.java:21)
... 53 filtered
at com.atlassian.jira.security.JiraSecurityFilter.lambda$doFilter$0(JiraSecurityFilter.java:66)
... 1 filtered
at com.atlassian.jira.security.JiraSecurityFilter.doFilter(JiraSecurityFilter.java:64)
... 16 filtered

1 answer

0 votes
Vasiliy Zverev
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.
February 28, 2018

Could you provide your script?

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, likes for trees, atlassian community, social impact, tree planting campaign, community kudos, atlassian giving, environmental impact, sustainability, likes for good, atlassian social responsibility, community challenge

Make every click count—help us plant 50,000 trees! 🌳

Want to make your everyday Community actions directly contribute to reforestation? The Atlassian Community can achieve this goal by liking a post, attending an ACE, sending your peers kudos, and so much more!

Help us plant more trees
AUG Leaders

Atlassian Community Events