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

osgi can't resolve Greenhopper's SwimlaneService

Gaya Kessler October 7, 2015

Hi!

For a plugin I am writing for JIRA Agile, I am trying to inject the `SwimlaneService` class for saving swimlanes. When I inject `RapidViewService` it works fine, but osgi seems to not be able to resolve `SwimlaneService`.

I have the following in atlassian-plugin.xml:

<component-import key="swimlaneService">
  <interface>com.atlassian.greenhopper.service.rapid.view.SwimlaneService</interface>
</component-import>

The error I get is:

Plugin '...' never resolved service '&swimlaneService' with filter '(objectClass=com.atlassian.greenhopper.service.rapid.view.SwimlaneService)'

Is there any way to get this dependency to work?

Thanks!

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Volodymyr Krupach
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.
October 7, 2015

Hi Gaya,

Probably you will not be able to inject SwimlaneService since it's not declared as public component in JIRA Agile plugin descriptor. I am downloading sources to be sure. Will update you later.

=== Update: That's true, SwimlaneService is not a public component.

I suggest you to download JIRA Agile sources (you can access them under my.atlassian.com if you bought license for JIRA Agile) and take a look at atlassian-plugin.xml, section "public Java API to be used by others. DO NOT CHANGE if you don't know what you're doing.". Maybe you can find component to use instead of SwimlaneService.

Gaya Kessler October 7, 2015

Thanks for taking a look for me Volodymyr, I will try your method and get back and update the ticket whether it worked.

TAGS
AUG Leaders

Atlassian Community Events