Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to modify a custom class in scriptrunner


I want to write some commonly used code as a package.

So I refer this 

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:

1 answer

1 accepted

0 votes
Answer accepted

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.

Hi @Peter-Dave Sheehan ,

It works! 

Thank you!

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Marketplace Apps & Integrations

🤺 Atlympic Event: Partnerships

Hello Community!  Quick disclaimer: We are running a contest on Community (The Atlympics!) from July 23rd - August 8th of 2021. If you are interested in participating in this contest (prizes! ...

149 views 2 6
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you