I'm getting below error when i'm trying to add groovy class file under custom listner
JIRA 6.3.7
Where have you placed the class exactly? jira-home/???/???/??? etc?
/opt/atlassian/jira/atlassian-jira/WEB-INF/classes/com/icg
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
it was working fine before jira upgrade 6.2
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok, which version of the script runner are you using now? If you've moved from 2.something to 3.something, then the script location handling has changed and you'll need to handle that.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
i was on 2.1.17 and moved to 3.0.6 how do i handle it?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Do i need to update setenv.sh with below set JAVA_OPTS=%JAVA_OPTS% -Dplugin.script.roots=//pt/atlassian/jira/atlassian-jira/WEB-INF/classes/com/icg
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hei, well you could copy the class into <jira-home>/scripts/com/icg/ then the class would be accessible from a custom listener as "com.icg.<className>" (please notice the missing '.groovy' extension)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
thanks, this worked.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you Michal and Nic. Covered here: https://jamieechlin.atlassian.net/wiki/display/GRV/Upgrading+to+3.0
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Jamie, that's where I was headed when I asked about the versions!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you guys. I was able to add those files successfully yesterday however today, when I tried to 'update' listener under 'script listners', it is throwing below error Problem loading class: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: /var/atlassian/application-data/jira/scripts/com/icg/UpdateSummary.groovy: 9: Invalid duplicate class definition of class UpdateSummary : The sources /var/atlassian/application-data/jira/scripts/com/icg/UpdateSummary.groovy and file:/var/atlassian/application-data/jira/scripts/com/icg/UpdateSummary.groovy each contain a class with the name UpdateSummary. @ line 9, column 1. class UpdateSummary extends AbstractIssueEventListener { ^ 1 error
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I marked Nic's answer as correct as you've cross-posted this last question.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.