You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
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: https://docs.adaptavist.com/sr4js/latest/best-practices/write-code/set-up-a-dev-environment
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?
Thanks.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.