Script Runner 3.0 Custom Built-In Postfunctions



We're running some tests on Script runner 3.0 and we're encountering problems in getting the custom builtin scripts to load properly in our JIra instance.  I seem to be implementing the package properly, but the documentation may be a bit misleading?  On the builtin script hacking page::

"have the script open in your IDE or text editor, make changes, then copy it out to one of the script roots"


But from the builtin script page:


The package name that your script/class must live in has changed from

for example:

Note this also means the containing directory name must change."

Basically looking for clues as to where to keep hunting.  Should I be placing builtin postfunction class in the script root? (home/scripts)

or should I be putting it in the postfunctions folder? 


I've been trying both ways with no success, unfortunately.  Any clues would be helpful.

Thank you,


2 answers

1 accepted

They're not contradictory instructions... it should be under one of the script roots (typically <jira_home>/scripts), and then under the directory corresponding to its package.

So an example for a post-function would be:






Awesome! Thanks Jamie, finally getting my errors in the logs again. Much appreciated. You rock! (BTW, love the new easy reloading of custom subclasses)

But what if we put it on the JIRA classepath, let me say under jira_install/atlassian-jira/WEB-INF/classes/com... This should works? For me this is not working now.

You can put compiled classes under there, but not uncompiled groovy classes. They need to go in a scripts directory.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,397 views 15 19
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you