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

Creating worktiem using Jazz Reportable Rest Api(RRA)

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.


0 votes



2 answers

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

0 votes

Comments

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
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.

0 votes

Comments

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 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
× 12,024
× 1,700

Question asked: Apr 10 '13, 5:20 a.m.

Question was seen: 4,900 times

Last updated: Apr 12 '13, 7:29 a.m.

Confirmation Cancel Confirm