Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Use of jira-fisheye plugin in another plugin

Jakub Papcun January 20, 2014

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

3 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Answer accepted
lpater
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 20, 2014

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.

Jakub Papcun January 21, 2014

Thank you very much this is exactly what I needed to know. :-)

0 votes
Jakub Papcun January 21, 2014

Thank you very much this is exactly what I needed to know. :-)

0 votes
Pablo Beltran
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 20, 2014
TAGS
AUG Leaders

Atlassian Community Events