I am using Groovy Script Runner Plugin to execute a CannedScript located in
WEB-INF/classes/com/onresolve.../canned/admin
It correctly appears in the "Built-in Scripts" menu, and runs, but when I change the source code for the scrit and the contained groovy class, the changes are not visible in Jira when I run the script.
What version of the plugin are you using? Class reloading required a small change to groovy itself. In certain versions of my plugin I inadvertently shipped the vanilla groovy runtime.
If you open the plugin jar with winrar or similar, in meta-inf/lib (I think) you should see a groovy-all-1.8.5-scriptrunner.jar. If it doesn't have that classifier, then reloading is likely not to work. There is another workaround IIRC but get back to me on those points above.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Did you have a look at
http://jira.codehaus.org/browse/GROOVY-4975
it could be useful for the reloading issue
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.