It's all about the answers!

Ask a question

Why I can not set WorkItemCategory/FiledAgainst in a new work item?

silencehill wu (5022532) | asked Feb 03 '14, 9:43 a.m.
edited Feb 23 '14, 7:58 a.m. by Sreerupa Sen (1.0k4)
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?

  xmlns:oslc_disc="" >
  <rtc_cm:filedAgainst rdf:resource="https://rtctest301:9443/ccm/resource/itemOid/" />
  <dc:type rdf:resource="https://rtctest301:9443/ccm/oslc/types/_uNPqYLeHEeKsqLMlUD79dA/mt缺陷" />

Kevin Ramer commented 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 commented Feb 05 '14, 12:05 a.m.

  <span class="Apple-tab-span" style="white-space:pre;">

this part is generated is not exists in my post xml. It is auto generated by this forum.

below is the actual xml value

2 answers

permanent link
Donald Nong (14.4k314) | answered Feb 24 '14, 12:41 a.m.
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.

permanent link
silencehill wu (5022532) | answered Feb 05 '14, 11:18 p.m.
Please give me an advise.

Your answer

Register or to post your answer.