Why are the namespaces for creating workitems different from retrieving workitems?
Hi,
I've been reading through https://jazz.net/wiki/bin/view/Main/WorkItemAPIsForOSLCCM20#Creation_Factories. One problem I came across was when I tried to set enumeration values for attributes. For example the 'severity' attribute.
This is what it looks like when I do a GET request (notice the oslc_cm namespace):
xmlns:oslc_cm="http://open-services.net/xmlns/cm/1.0/"
...
>
<rdf:Description rdf:about="https://localhost:9443/ccm/resource/itemName/com.ibm.team.workitem.WorkItem/71">
...
<oslc_cm:severity rdf:resource="https://localhost:9443/ccm/oslc/enumerations/_reyOgOtvEeqJWP8guRskZg/severity/severity.literal.l6"/>
Now when I tried to create a new work item via POST request (using the information from above) it failed to set the severity attribute correctly.
After some time I figured out, that the severity attribute is set correctly during creation if I use the following namespace instead (notice the oslc_cmx namespace):
<rdf:RDF
xmlns:oslc_cmx="http://open-services.net/ns/cm-x#"
...
>
<rdf:Description rdf:nodeID="A0">
...
<oslc_cmx:severity rdf:resource="https://localhost:9443/ccm/oslc/enumerations/_reyOgOtvEeqJWP8guRskZg/severity/severity.literal.l6"/>
Can anyone shed some light on, why different namespaces are required for retrieving and creating workitems?
Kind regards,
Fabian
|
Be the first one to answer this question!
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.
Comments
Sorry, for the bad formatting. I tried to edit the question, but I can't. The forum software keeps telling me my question is spam :(