Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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>

0 votes

Comments

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?

  <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
Please give me an advise.

0 votes


Permanent link
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.

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,936
× 369

Question asked: Feb 03 '14, 9:43 a.m.

Question was seen: 6,100 times

Last updated: Feb 24 '14, 12:41 a.m.

Confirmation Cancel Confirm