I tried creating a jira script plugin and I was able to run it on the scriptrunner console, the groovy script can be found. But this is on my development environment.
Then I tried installing the script plugin to another jira server instance but in there the groovy script cannot be found.
How does the script root works in this scenario?
Here is my setup that works on the dev environment.
Besides of the simple groovy script that is on the resources folder. I only have added this part to my atlassian-plugin.xml
// add in atlassian-plugin.xml
// atlassian-plugin > plugin-info
<bundle-instructions>
<Require-Bundle>com.onresolve.jira.groovy.groovyrunner</Require-Bundle>
</bundle-instructions>
also to pom.xml
// add in pom.xml
// build > plugins > plugin > configuration
<systemPropertyVariables>
<plugin.script.roots>${project.basedir}/src/main/resources,${project.basedir}/src/test/resources</plugin.script.roots>
</systemPropertyVariables>
i tried adding the full path to the console file path input (packagenamehere/script.groovy), but still cannot be found. im using the latest version of scriptrunner.
Try to see if there is anything in this answer that helps: https://community.atlassian.com/t5/Jira-Software-questions/ScriptRunner-Script-Roots/qaq-p/1860856
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.