• Community
  • Products
  • Jira
  • Questions
  • In Jira, is it possible to have custom (e.g. groovy script class listeners) classes be outside the jira classpath (web-inf/classes)?

In Jira, is it possible to have custom (e.g. groovy script class listeners) classes be outside the jira classpath (web-inf/classes)?

I developed a custom groovy listener class and now my admin wants me to deploy it outside the jira classpath so that jira upgrade becomes easy. I can deploy the class in the classpath as @jamie echlindescribes in his groovy script listener doc and got it working. Elsewhere (from Jamies comment may 2013) I read it is not possible to deoploy the custom classes outside the classpath. Is there any solution/work around here?

1 answer

1 accepted

0 vote
Eddie Webb Community Champion Feb 28, 2014

Have you tried specifying an alternate path as the resource directory?

https://jamieechlin.atlassian.net/wiki/display/GRV/Script+Runner#ScriptRunner-Conditions,Validators,Post-Functions

If you would like to separate out your scripts from jira, as of 2.0.3 you can you use the system property plugin.resource.directories which is a comma-delimited list of paths. Eg in setenv.sh you might add:


Hi Eddie, sorry for the delayed reply. But I'm sure I won't allowed to try those options on the production server. We have ~5K users and hard to convince those in charge to let me tweak around. I appreciate your answer. But the link you posted denied me permission to view the page the day you replied but today its opening fine (from home win7+chrome). Thx.

Eddie Webb Community Champion Mar 03, 2014

Hi Sri - you can use "Continue Discussion" to add additional comments to this answer. (posting as new answers loses the "thread" of discussion).

As far as the change - we support 10,000+ users, but we have non-prod environments where we 'tweak around' things. I must assume the same about your company?


The directive I linked to is a pretty safe way to expand the list of OS Paths on the JVM's "classpath" (I think it is actually technically a distinct classpath used only for plugin bundles, so he chnage/risk is even smaller) -- I (even in a 50,000 employee company) am authorized to make those types of changes as long as they are tested, reviewed, and approved. Surely so is someone on your side.

You are looking for alternatives to move code out of the INSTAL_DIR for JIRA, and to do so you will need to _somehow_ alter the classpath used by JIRA due to the issue Jamie expressed.

ah, my bad! new to the forums.

I do go thru the dev/test environments before deploying it in production, but getting reviewed takes time at least for now. I shall however, test it.

Thanks for a good explanation. I will run it by my PM for further action.

G' day.

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,316 views 14 20
Join discussion

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot