Hey guys,
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>6.3.4.3</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?
Cheers,
Manu
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
https://maven.atlassian.com/content/groups/public/com/atlassian/jira/plugins/
https://maven.atlassian.com/content/groups/public/com/atlassian/jira/plugins/jira-greenhopper-plugin/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What I did is install the JIRA Agile plugin in the Maven repository with
mvn install:install-file -Dfile=plugin.2028706680741470180.jira-greenhopper-plugin-6.3.6.1.jar -DgroupId=com.atlassian.jira.plugins -DartifactId=jira-greenhopper-plugin -Dversion=6.3.6.1 -Dpackaging=jar
And put a provided dependency on it in the pom.xml. That worked for compilation.
Regards,
Bas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.