IWorkItemServer Service not found while trying to save a WorkItem
Hi everyone,
I'm trying to set the HTMLSummary of a WorkItem in my server extension and I read online that I have to save my WorkItem for it to work(heh).
I tried to use the IWorkItemServer but if I execute:
IWorkItemServer workItemServer = getService(IWorkItemServer.class);
I get this error:
[err] com.ibm.team.repository.common.transport.internal.registry.ServiceNotFound
Exception: The service 'adv3.AbstractService@9341e2fb' failed to find the requir
ed service 'interface com.ibm.team.workitem.service.IWorkItemServer'. Check <prerequisites> in plugin.xml.
I don't have a <prerequisites> tag in my plugin.xml
Do I have to add something?
Thanks
Accepted answer
Nvm, duplicate question
https://jazz.net/forum/questions/134982/how-to-programme-the-prerequisites-in-pluginxml
Comments
This is also discussed in the extensions workshop and https://rsjazz.wordpress.com/2012/07/31/rtc-update-parent-duration-estimation-and-effort-participant/
You have to basically provide the prerequisites in the plugin.xml.
1 vote