Anyone have a real, working scriptrunner Script plugin? Edited

I'm trying to package some Groovy code to be used by a ScriptRunner script during a workflow. 

I've got a Script plugin configured which seems to be loaded and enabled, but I am unable to access the class.

When I examine the jar file, I see a lot of classes but not my Groovy classes. My pom.xml does include a plugin.scripts.roots parameter to the maven-jira-plugin that references the directory including my Groovy code.

During the build, I see a message regarding "Skipping OBR generation... no OSGI bundle manifest instructions found in pom.xml". Do I need to include some?

1 answer

1 accepted

I had put my code under "src/main/groovy" but the Script plugin really wants it under "src/main/resources". Now my scripts appear in the jar.

And was able to try to execute a test script to access it. But now it fails with a null pointer exception. 

So I guess we can consider this question answered.

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
Published Sunday in Agility

You asked for it, so we delivered: images on issues have arrived

A picture tells a thousand words. And agility boards have just released their latest feature: cover images on issues – so now your board can tell a story at first glance. Upload attachmen...

672 views 3 11
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