It's all about the answers!

Ask a question

IWorkItemServer Service not found while trying to save a WorkItem


Philipp H (53615) | asked Aug 10 '16, 4:58 a.m.
edited Aug 10 '16, 5:00 a.m.
 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


permanent link
Philipp H (53615) | answered Aug 10 '16, 5:04 a.m.
 Nvm, duplicate question

https://jazz.net/forum/questions/134982/how-to-programme-the-prerequisites-in-pluginxml
Ralph Schoon selected this answer as the correct answer

Comments
1
Ralph Schoon commented Aug 10 '16, 5:39 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

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.

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.