Creating Workitem using OSLC 2.0
Hi,
I need to create a workitem using oslc 2.0. I am not getting the exact format of the request body to out in the rest client. Can anyone show me an exact example of the xml that I can use? Thanks, Sud |
Accepted answer
From my setup where creation factory is accessible through : <oslc:creation rdf:resource="https://clm50.ibm.com/ccm/oslc/contexts/_Er238D6VEeSMB9u6bNNYlQ/workitems/task"/>I perform a POST on https://clm50.ibm.com/ccm/oslc/contexts/_Er238D6VEeSMB9u6bNNYlQ/workitems/taskwith content type header set to : Content-Type : application/xmland body : <?xml version="1.0" encoding="UTF-8"?>the Task work item gets created. Notes : a. look at the Resource Shape to understand the Required attributes during creation and supply them. b. GET a work item and use the response to construct your body. - remove non-required attributes and - supply appropriate values for other attributes hope this helps Sudipto Sarkar selected this answer as the correct answer
Comments
Sudipto Sarkar
commented Apr 17 '15, 3:34 a.m.
Hi Dinesh,
glad to know that.. please accept the answer if it covered your question.
Sudipto Sarkar
commented Apr 17 '15, 8:22 a.m.
Hi Dinesh,
Sudipto Sarkar
commented Apr 28 '15, 1:42 a.m.
Hi Dinesh,
HI Sudipto,
Sudipto Sarkar
commented Apr 28 '15, 4:00 a.m.
Hi Dinesh,
<dcterms:description rdf:parseType="Literal"></dcterms:description> When I am tryin with "dcterms", i am getting error as " field is not bound". Have anyone used Python package rtcclient 0.6.0 on RTC with OSLC 2.0 successfully? I got "not well-formed (invalid token)" error when I tried to get work item by (for example), myclient = RTCClient(url, username, password, ends_with_jazz=False) wk = myclient.getWorkitem(1643428) . The root cause appears to be the xmltodict.parse( ) can't parse the response content without error.
showing 5 of 7
show 2 more comments
|
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.