Hi. I use scriptrunner and i need creatre report.
I need get closed sprints this month for certain projects/boards.
How i can get?
I tryed used example
def SprintService = getComponent(SprintService)
but error
groovy.lang.MissingMethodException: No signature of method: org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.getComponent() is applicable for argument types: (Class) values: [interface com.atlassian.greenhopper.service.sprint.SprintService] at Script390.run(Script390.groovy:4)
next im try use
def jiraUser =ComponentAccessor.getJiraAuthenticationContext().getLoggedInUser()
SprintService.getSprint(jiraBotUser,13860)
but error
groovy.lang.MissingMethodException: No signature of method: static com.atlassian.greenhopper.service.sprint.SprintService.getSprint() is applicable for argument types: (com.atlassian.jira.user.DelegatingApplicationUser, Integer) values: [Ruslan(JIRAUSER19132), 13860] Possible solutions: toString(), toString() at Script426.run(Script426.groovy:8)
pls help