Hey guys :-)
I'm trying to write an Jira (v7.1.3) plugin to get sprint information like end and start date.
How can I do this? There is a SprintManager class, a SprintService class and a SprintIssueService class. Which one to use?
I read much about using the Jira REST API? But that cannot be the best way to do this?!
Thank you very much in advance!
Greetings
For stuff like projects and issues, the SDK’s object ComponentAccessor has methods, getProjectManager and getIssueManager, to retrieve instances of ProjectManager and IssueManager, but we couldn’t find the equivalent in GreenHopper to instantiate objtects RapidViewManager, SprintManager, etc.
Have you tried to use on your constructor the following:
SpringManager sprintManager = ComponentAccessor.getOSGiComponentInstanceOfType(SpringManager.class);
It should be work.
Kind Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes I did. Its there --> but its null ... :-(
In documentation you can see that in attliasian-plugin.xml configuration the attribute "public=true" has to be set for the component configuration. Thats not the case for SprintManager in jira-greenhopper-plugin-7.0.10.jar ...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jack!
Thanks for your answer.
Whats the best way to use it?
I get it not imported by just annotating it with @ComponentImport
It seems that Im missing something oO
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Manuel and welcome,
You can simply use SpringManager.class to get the required information.
Kind Regards.
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.