It's all about the answers!

Ask a question

JAZZ Java API? REST/WEB SERVICES? How does it work?


Michael Dundek (41161) | asked Feb 18 '09, 9:33 a.m.
Hello techies,

I need to expose a Web Service that lets me create and manage work items in RTC, so that I can trigger those create / modify tasks from a Business Process (BPEL) by just invoking that service.
Could any of you point me to the best way of doing that, is there an API, Java maybe for that, or does the Jazz server come with REST services that can handle those kind of tasks? Could you also provide me with a link to some useful documentation or tutorials on the subject please?

Thanks,

Michael

2 answers



permanent link
Michael Dundek (41161) | answered Feb 23 '09, 4:33 a.m.
Many thanks to you Patrick, that was exactly what I was looking for! :D

permanent link
Patrick Streule (4.9k21) | answered Feb 19 '09, 9:08 a.m.
JAZZ DEVELOPER
I need to expose a Web Service that lets me create and manage work
items in RTC, so that I can trigger those create / modify tasks from
a Business Process (BPEL) by just invoking that service.
Could any of you point me to the best way of doing that, is there an
API, Java maybe for that, or does the Jazz server come with REST
services that can handle those kind of tasks? Could you also provide
me with a link to some useful documentation or tutorials on the
subject please?

There is currently no officially supported Restful HTTP API for work
items. This is planned for 2.0.

You can create work items using plain Java, however. Please see

https://jazz.net/wiki/bin/view/Main/ClientLibrarySetup
https://jazz.net/wiki/bin/view/Main/ProgrammaticWorkItemCreation

An example snippet:

IWorkItemWorkingCopyManager workingCopyManager=
workItemClient.getWorkItemWorkingCopyManager();
IWorkItemHandle handle= workingCopyManager.connectNew(fgDefectType,
null);
WorkItemWorkingCopy workingCopy=
workingCopyManager.getWorkingCopy(handle);

workingCopy.getWorkItem().setHTMLSummary(XMLString.createFromPlainText(getName()));
workingCopy.save(null);

--
Regards,
Patrick
Jazz Work Item Team

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.