I try to develop a Plugin for Jira Agile. Therefore I integrated the maven dependency:
<dependency> <groupId>greenhopper</groupId> <artifactId>jira-greenhopper-plugin</artifactId> <version>220.127.116.11</version> <scope>provided</scope> </dependency>
Now I am trying to access the com.atlassian.greenhopper.EventListenerRegistry class and the implementation of the com.atlassian.greenhopper.manager.issuelink.EpicLinkManager Interface. But when I add for instance to the atlassian-plugin.xml file the following:
<component-import key="epicLinkManager" interface="com.atlassian.greenhopper.manager.issuelink.EpicLinkManager"/>
The plugin doesnt start with hundreds of error messages. Does anybody have an idea what this could be? In comparison, when I add something of the package com.pyxis.greenhopper.XXX to the atlassian-plugin.xml it works. What do I do wrong here? I worked with this Javadoc (https://docs.atlassian.com/greenhopper/6.3.3/). There both packages are described. Cheers, Manu
Community moderators have prevented the ability to post new answers.
To answer the question by myself: It is simply NOT possible to access the services I would need ,what is very frustrating in my opinion, these services would make life MUCH easier! Why are they even mentioned if they cannot be used?
I found my answer in this thread after very long time of searching: https://answers.atlassian.com/questions/166627/how-to-access-greenhopper-services-and-managers
I also read it would be possible to use reflections to retrieve these services. I would not know how to implement that. Does anybody have an idea how this can be done?
What I did is install the JIRA Agile plugin in the Maven repository with
mvn install:install-file -Dfile=plugin.2028706680741470180.jira-greenhopper-plugin-18.104.22.168.jar -DgroupId=com.atlassian.jira.plugins -DartifactId=jira-greenhopper-plugin -Dversion=22.214.171.124 -Dpackaging=jar
And put a provided dependency on it in the pom.xml. That worked for compilation.
I haven t done the <component-import> since I did not need it from my project but I assume that this should work as stated in other posts of this question.
Note that there is also the jira-greenhopper-api maven artifact which you might want to look at. To figure out whats available, have a look at
Take our 5-minute survey to win a $500 Visa gift card! Are you currently using Confluence Cloud? We want to hear from you! Fill out this quick survey about your Confluence Cloud experience so we ...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events