Hi,
I need to retrieve the sprint Name of a given Sprint ID (e.g. let's say we have SprintID = 101),
I have GreenHopper 6.1.5 on my Jira Instance 6.1.5, so, I put the following dependency in my pom.xml:
<dependency>
<groupId>com.atlassian.jira.plugins</groupId>
<artifactId>jira-greenhopper-plugin</artifactId>
<version>6.1.5</version>
<scope>provided</scope>
</dependency>
and inside my code, I injected SprintManager and I put:
log.debug("Sprint: " + sprintManager.getSprint(101).getValue().getName());
I obtained the following:
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'cust_single-stat-resource' defined in URL [bundle://282.0:0/META-INF/spring/atlassian-plugins-components.xml]: Unsatisfied dependency expressed through constructor argument with index 2 of type [com.atlassian.greenhopper.service.sprint.SprintManager]: : No unique bean of type [com.atlassian.greenhopper.service.sprint.SprintManager] is defined: Unsatisfied dependency of type [interface com.atlassian.greenhopper.service.sprint.SprintManager]: expected at least 1 matching bean; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [com.atlassian.greenhopper.service.sprint.SprintManager] is defined: Unsatisfied dependency of type [interface com.atlassian.greenhopper.service.sprint.SprintManager]: expected at least 1 matching bean
What I have missed?
Thanks,
Rosy