Jira version: 6.4.9
I have written a custom class in order to add some functionality and stored it to .../webapp/WEB-INF/classes/com/custom/Last24Hours.class. I am calling a method of the class from a scripted field and have tried the same from the script console. Here's the code:
package com.custom
def todaysDate = new Date()
def Created = issue.getCreated()
def Updated = issue.getUpdated()
def retVal = new String()
def last24Hours = new Last24Hours()
retVal = last24Hours.getChanges(todaysDate,Created,Updated)
return retVal
I get the following error message:
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: Script849.groovy: 7: unable to resolve class Last24Hours @ line 7, column 19. def last24Hours = new Last24Hours()
^ 1 error
I can access a .groovy script in the same location from a scripted field. What is wrong?