Why I can not set WorkItemCategory/FiledAgainst in a new work item?
I am writing a rest API to create a new workitem. I add the category uuid in rtc_cm:filedAgainst tag.
In my test case, WorkItemCategory/FiledAgainst uuid is _RAME5LeIEeKSlsOJaLvBtQ.
And below is xml I posted. After I post, I found the other fileld is set correct, but the WorkItemCategory/FiledAgainst is not changed, still be default, not the category I wanted. Please tell me why and how can I set the FiledAgainst correctly?
<oslc_cm:ChangeRequest
xmlns:dc="http://purl.org/dc/terms/"
xmlns:rtc_cm="https://jazz.net/xmlns/prod/jazz/rtc/cm/1.0/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:oslc_cm="http://open-services.net/xmlns/cm/1.0/"
xmlns:jd="http://jazz.net/xmlns/prod/jazz/discovery/1.0/"
xmlns:calm="http://jazz.net/xmlns/prod/jazz/calm/1.0/"
xmlns:jp="http://jazz.net/xmlns/prod/jazz/presentation/1.0/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/"
xmlns:oslc_disc="http://open-services.net/xmlns/discovery/1.0/" >
<rtc_cm:filedAgainst rdf:resource="https://rtctest301:9443/ccm/resource/itemOid/com.ibm.team.workitem.Category/_RAME5LeIEeKSlsOJaLvBtQ" />
<dc:title>test2014010704</dc:title>
<dc:description>就是描述喔</dc:description>
<dc:type rdf:resource="https://rtctest301:9443/ccm/oslc/types/_uNPqYLeHEeKsqLMlUD79dA/mt缺陷" />
</oslc_cm:ChangeRequest>
2 answers
Not sure whether you have already figured it out. In your original post, the <rtc_cm:filedagainst /> is incorrect. It should have been <rtc_cm:filedAgainst /> (with capital A). I have no problems with creating a defect with filedAgainst filled using OSLC in my CLM 4.0.4 environment. I suggest you GET an existing defect work item first and use the output as a template to work out the POST content.
Comments
Kevin Ramer
Feb 03 '14, 4:44 p.m.Is that 'span class="Apple-tab-span"... part of what is being posted or is it an artifact of putting the xml into this forum?
silencehill wu
Feb 05 '14, 12:05 a.m.<span class="Apple-tab-span" style="white-space:pre;">