Normaly it should be sufficient to replace the script. If this doesn't work use the built in script "Clear classloader or jira internal caches" from the script runner plugin to reset the groovy classloader cache.
Henning
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is weird. I have classes which are used by listeners or scripts which are not refreshed if I copy a new file to the server, but they are always refreshed if I clear the groovy classloader cache. Maybe you should provide more details about your installation (script runner plugin version, JIRA version and environment) and hopefully @Jamie Echlin could help?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Henning - Thanks for sticking with me on this one! I've never had this problem testing scripted post functions, as those always reflect the latest version of the script. However, given my lack of experience with Groovy/Java, it's entirely possible I'm doing something very silly and just can't see it.
I'm testing my code using the SDK (version 4.2.9) on a windows 7 32-bit PC. I start JIRA with "atlas-run-standalone --product JIRA --version 6.0.1". I am using scriptrunner version 2.1.15. I figured that once I had it working, I'd move to my staging server and verify performance before going to the live server.
The listener itself doesn't really do anything at this point - all I'm doing right now is logging various custom fields.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I finished the listener, so I no longer need the answer (until it happens again). But Henning's original response was new info for me, so I'm marking his answer as correct.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello. I'm facing exactly this problem. Found others with the same problems, but no effective sollution. I'm running Jira 6.1.3 and Script Runner 2.1.16. Thanks in advance.
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.