I'm getting the following error when trying to add a custom script listener.
Problem loading class: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: /var/atlassian/application-data/jira/scripts/JDEMgrCritical.groovy: 47: Invalid duplicate class definition of class JDEMgrCritical : The sources /var/atlassian/application-data/jira/scripts/JDEMgrCritical.groovy and file:/var/atlassian/application-data/jira/scripts/JDEMgrCritical.groovy each contain a class with the name JDEMgrCritical. @ line 47, column 1. public class JDEMgrCritical extends AbstractIssueEventListener { ^ 1 error
It looks like the class JDEMgrCritical has been declared twice.
/var/atlassian/application-data/jira/scripts/JDEMgrCritical.groovy and file:/var/atlassian/application-data/jira/scripts/JDEMgrCritical.groovy are the same file and there is only one class declaration in it. I don't know why it's comparing the file on the file system to itself.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can I ask you from where are you running that file? is it from the Script Console?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Could you also post the code of JDEMgrCritical and share the version of Jira and Script Runner your instance is running?
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.