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