It's all about the answers!

Ask a question

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


silencehill wu (5022632) | 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?

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

Comments
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
silencehill wu (5022632) | answered Feb 05 '14, 11:18 p.m.
Please give me an advise.

permanent link
Donald Nong (14.5k414) | 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.

Your answer


Register or to post 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.