Hello i need to copy the Agile board of a project programmatically. And i think that the best way to do that is by using of greenhopper plugin and RapidViewService. When i am trying to call a method from RapidViewService it throws a NoSuchMethodException. The plugin is successfully compiled and uploaded to the JIRA server. I tried with different versions of the plugin and different types of injecting of the Service but i am not able to use it. I have a @Scanned annotation on the top of the class, @Inject annotation on the top of the constructor and @ImportComponent annotation on the service.
POM:
<dependency>
<groupId>com.atlassian.jira.plugins</groupId>
<artifactId>jira-greenhopper-plugin</artifactId>
<version>6.7.2</version>
<scope>provided</scope>
</dependency>
properties>
<jira.version>7.2.3</jira.version>
<amps.version>6.2.8</amps.version>
<template.renderer.version>2.0.4</template.renderer.version>
</properties>
Calling of the service:
ServiceOutcome<RapidView> rapidViewServiceOutcome = rapidViewService.getRapidView(ApplicationUsers.toDirectoryUser(user), template.getId());
atlassian-plugin:
<component-import key="rapidViewService" interface="com.atlassian.greenhopper.service.rapid.view.RapidViewService">
</component-import>
I think that it's some issue with the version of jira and the version of the greenhopper plugin.