Are you in the loop? Keep up with the latest by making sure you're subscribed to Community Announcements. Just click Watch and select Articles.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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

Suggest an answer

Log in or Sign up to answer
0 votes
Answer 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.

TAGS
AUG Leaders

Atlassian Community Events