|
[
Permlink
| « Hide
]
Elliot Metsger added a comment - 17/Nov/05 04:16 PM
Am looking right now at the RPC Plugin source and have downloaded the Plugin Dev kit - seeing if I can add the functionality without having access to the Jira source code!
Elliot,
You should be able to do this. You have access to the JIRA jar file so you can access all the methods in JIRA, but just not the source. You might want the API docs to help you out instead http://www.atlassian.com/software/jira/docs/api/latest/ You would want to check out the WatcherManager object Cheers Mark C Ok i have most of the code done. But I added a watcherManager to soap.service.IssueServiceImpl. My question is, do I need to look at PicoContainer in order to inject a new watcherManger or can I obtain a watcherManager reference from an already existing object referenced by IssueServiceImpl?
Currently I retrieve the watcherManger like so inside of the IssueServiceImpl constructor:
this.watcherManager = (WatcherManager)ComponentManager.getInstance( ) .getContainer( ).getComponentInstance( WatcherManager.class ); Is that the best way to go about getting the watcherManager? Hi Elliot,
You can get the WatcherManager statically as you have shown above. However, adding it as a dependency to your constructor and then keeping a reference to it is betetr however. If you look at the constructor of the IssueServiceImpl it already has quite a few managers declared as dependencies in the constructor. Anton Are there any plans to add the functionality to allow adding watchers to issues through the SOAP API? This would be a great help to us, as it is the one feature missing that is holding us back from full integration with our environment right now.
HVS This should be in the SOAP API.
Can the equivalent be achieved by pulling the issue key from the jiraissue table then adding an entry to the userassociation table ? Does any additional bookkeeping need to be done? |
||||||||||||||||||||||||||||||||||||||||||||||||