We're updating the issue view to help you get more done.Learn more

import of helper class not possible

 

I'm testing the switch from 2.x to Script Runner 3.0.6. I have a helper class


JiraTools

within the package

eventim

. For 2.x of Script Runner this class was saved under

atlassian-jira/WEB-INF/classes/eventim/JiraTools.groovy

and all other scripts could use this class via

import eventim.JiraTools

.

 

For SR 3.0.6 this doesn't work anymore. Within the console for example I get the error

1 2 3 4 5 org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: Script9.groovy: 1: unable to resolve class eventim.JiraTools @ line 1, column 1. import eventim.JiraTools as ejt ^ 1 error

I copied the file to jirahome/scripts/eventim/JiraTools.groovy but that doesn't help.

As far as I understand the documentation, this should work. Or am I wrong?

Status

Assignee

JamieA

Reporter

Henning Tietgens

Internal Complexity

Unknown

Internal Value

Unknown

Affects versions

3.0.6

Priority

Major