Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

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

0 votes



2 answers

Permanent link
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

0 votes


Permanent link
Many thanks to you Patrick, that was exactly what I was looking for! :D

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,939

Question asked: Feb 18 '09, 9:33 a.m.

Question was seen: 8,615 times

Last updated: Feb 18 '09, 9:33 a.m.

Confirmation Cancel Confirm