Hi,
I want to write some commonly used code as a package.
So I refer this https://scriptrunner.adaptavist.com/latest/jira/#_script_roots
and do some test.
Here I get some problem.
First, I add new groovy in Script Editor
and test it on Script Console
it worked as expected
But, when I modify Bollo.groovy as "hello sailor!!!" to ""hello" and save it.
And test it on Script Console again, it still print "hello sailor!!!"
Whatever I modify Bollo.groovy in Script Editor, it still print the same result.
Can anyone help me to modify a custom class in scriptrunner. Thanks a lot.
JIRA version : v8.5.1
Scriptrunner version: 5.6.15.1-p5
Go to your Built-In script section and select "Clear Groovy classloader or Jira internal cachesHelp"
Then select Groovy class loader and click Run
I think this is perhaps a bug with the ScriptEditor. When I edit scripts directly in the filesystem (or sync them with winscp) then those classes are automatically re-loaded.
But when I edit them in the Script Editor, I find that I have to clear the class loader.
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.