Hi all,
I'm trying to make use of the jira-fisheye plugin as it already implements the functionality I need in my own plugin. I have not been however able to actually create instances of managers that jira-fisheye plugin offers. I put the dependency on the plugin as following
<dependency><groupId>com.atlassian.jira.plugins</groupId> <artifactId>jira-fisheye-plugin</artifactId> <version>6.0.2</version> <scope>provided</scope> </dependency>
I put this into atlassian-plugin.xml
<component-import key="changeSetManager" interface="com.atlassian.jirafisheyeplugin.domain.fisheye.ChangeSetManager"/>
Now even with this I cannot inject changeSetManager neither can I call this manager through ComponentManager or ComponentAccessor.
I would like to ask if any of you have tried this or if you know any solution as to how access managers of jira-fisheye-plugin.
Thanks a lot all of you in advance
Community moderators have prevented the ability to post new answers.
Hi Jakub,
it seems that the JIRA FishEye plugin doesn't export the packages needed to use that component, despite the component itself being marked as public.
You should be able to add 'com.atlassian.jirafisheyeplugin.domain.fisheye.*' to the bundle's export list (in atlassian-plugin.xml, Export-Package section - https://bitbucket.org/atlassian/jira-fisheye-plugin/src/c049d2b704c2513ced6b73f38a279de6384bebac/src/main/resources/atlassian-plugin.xml?at=jira-fisheye-plugin-6.1.x#cl-44) and import the component from the modified plugin.
Depending on your use case, a better approach might be to query the FishEye REST API directly and not rely on the JIRA FishEye plugin - in general the plugin's components aren't an officially supported API.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you very much this is exactly what I needed to know. :-)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
A similar question (with no answer):
https://answers.atlassian.com/questions/196180/loading-reviewmanager-in-custom-plugin
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.