Script Runner: Want to install more canned scripts, cannot locate directory.

We have created some nice groovy scripts that use the canned interface that Jamie Echlin so nicely provided.

However, our install path for those scripts which should be:

<jira>/atlassian-jira/WEB-INF/classes/com/onresolve/jira/groovy/

Does not exist on our server. When I go to see where my currently installed scripts are executing from they are executing from:

Loaded from: bundle://146.0:1/com/onresolve/jira/groovy/canned/admin/ConditionTester.groovy

I cannot locate this bundle location either. I am sure that this is some sort of change with the latest upgrade of JIRA (6.0.6).

We've found scriptrunner to be useful in the past, and the only thing that will make it more useful is installing our own scripts... if we can figure out where to put them.

So ultimately: advice on where we can put canned scripts for Script Runner (groovy-runner) under JIRA 6.0.6 and have them picked up by the plugin would be greatly appreciated.

I am spending my single Karma on this question.

1 answer

1 accepted

3 votes

You should just create the directory that you've spotted is not there currently. It should exist up to the "onresolve" bit anyway.

The bundle:// url is the designation given to resources in OSGi plugins. When you create the directory you mention and put stuff there, the "loaded from" url will be file://...

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Wednesday in Jira

Join our webinar: How 1B+ feature flag events helped us build the new Jira

Every time you release software, there's a bit of risk – that there's a bug, that something breaks, or that the feature doesn't resonate with customers. Feature flagging helps make high stakes s...

134 views 0 3
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