It's all about the answers!

Ask a question

Creating worktiem using Jazz Reportable Rest Api(RRA)


Sarath Shasikumar (1759) | asked Apr 10 '13, 5:20 a.m.
I am looking for a way to create workitem using Rest API.

I tried to follow the specs :
Creating WorkItems

But when I do a get on the url
https://localhost:9443/jazz/oslc/contexts/_9BHm0EqVEd6HXO10niqZpg/workitems

I get a 404

Any help will be appreciated.


2 answers



permanent link
Krzysztof Kaźmierczyk (7.5k480103) | answered Apr 10 '13, 6:54 a.m.
Hi Sarath,
_9BHm0EqVEd6HXO10niqZpg is your project area id. I believe that you have the different one than in the example.
You can check for your context by navigating to https://localhost:9443/ccm/oslc/workitems/1.xml

Also you probably need to use /jazz/ application context:

https://localhost:9443/jazz/oslc/contexts/<your-context>/workitems


Let me know if it helps for you.

Comments
Sarath Shasikumar commented Apr 12 '13, 7:27 a.m.

if I am not wrong then <your-context> should be project id right?
I tried the following but without success.
https://localhost:9443/jazz/oslc/contexts/_RhFE4Z1EEeK2Ur8MTdcgXg/workitems

https://localhost:9443/ccm/oslc/workitems/1.xml works but to know that 1.xml exists i have to first retrieve all workitems right


permanent link
Daniel Toczala (88211514) | answered Apr 10 '13, 8:02 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
edited Apr 10 '13, 8:02 a.m.
If you are attempting to create work items programatically, you should read Ralph Schoon's blog on Understanding and using the RTC Java Client API and his post on Using Expressions for Automation.  The second article references the Programmatic Creation of Work Items entry in the Jazz wiki, but that is an older article so you may need to check into things and validate parts of it.

Comments
Sarath Shasikumar commented Apr 12 '13, 7:29 a.m.

Thanks Daniel for your help.
But what I am really looking for is to use the webservice rather than the sdk.
If i am not able to proceed using webservice I will definitely use the sdk.

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.