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

import of helper class not possible

Description

*This issue has moved*

This issue has been moved permanently to Adaptavist's Product Support JIRA instance.

All existing users of this instance should have the same username on our Product Support instance. However, you will very likely need to click on the
Can't access your account link in order to reset to a new password.

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?

Environment

JIRA 6.2.7 Server

Status

Assignee

JamieA

Reporter

Henning Tietgens

Internal Complexity

Unknown

Internal Value

Unknown

Affects versions

3.0.6

Priority

Major