Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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


1 badge earned


Participate in fun challenges

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


Gift kudos to your peers

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


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!


Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

ScriptRunner script plugin not fully working

I would like to make a ScriptRunner script plugin for Jira, that is, a plugin that includes some scripts that I can run from ScriptRunner. I am building on the sample plugin talked about here:

The thing is it doesn't fully work, as you can see in the following screenshot. I created a class called com.xeridia.Example that takes an org.apache.log4j.Logger and prints the current date. Technically it works, seeing as you can see the date printed on the log below, the problem is whenever I import the class or reference the file of that class, an error always shows up that the file, the package or the class doesn't exist.

Although the code is working, I need to get rid of these errors, as they more than often confuse my developers and they thing they're doing something wrong.

Is it possible?



1 answer

Just to muddle through, I'll answer myself. It seems like the @WithPlugin directive sort of solves the problem.




However, there still seems to be a bit of a problem with ScriptRunner's script roots. It seems like it can execute the scripts correctly, but says it can't find them under the script roots:


Also, there is no inkling whatsoever as to the script roots that were newly added by my script plugin throughout the ScriptRunner configuration.

Hello, for the issue with ScriptRunner's roots. You might want to try to install Scriptrunner's plugin to the latest version 8.1.0. 

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events