Filed Against attribute needs to be set, even though I already have
Ian Giblett (26●2●14●16)
| asked Mar 26 '13, 1:11 p.m.
edited Mar 26 '13, 1:46 p.m. by Ralph Schoon (63.5k●3●36●46)
Hello,
I'm trying to create a defect in RTC by posting the rdf directly to RTC via the OSLC interface.
When I post my rdf/xml I get back the following:
'Save Work Item' failed. Preconditions have not been met: The 'Filed Against' attribute needs to be set (work item <04:59:02>)
But as far as I can tell, I have done this. Here is the RDF that I'm posting; the bit in bold is where I'm specifying my filed against attribute.
<rdf:RDF xmlns:dcterms = "http://purl.org/dc/terms/" xmlns:oslc="http://open-services.net/ns/core#"
xmlns:oslc_cm="http://open-services.net/ns/cm#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rtc_cm="http://jazz.net/xmlns/prod/jazz/rtc/cm/1.0">
<oslc_cm:Changerequest>
<dcterms:title>Demo defect </dcterms:title>
<dcterms:description> Defect created by ians HTTP Post </dcterms:description>
<dcterms:type>Defect </dcterms:type>
<rtc_cm:type rdf:resource="https://localhost:9443/ccm/oslc/types/_bm6RIIHAEeK125wF_AwqHA/defect"/>
<rtc_cm:filedAgainst rdf:resource="https://localhost:9443/ccm/resource/itemOid/com.ibm.team.workitem.Category/_euaNlIHAEeK125wF_AwqHA"/>
</oslc_cm:Changerequest>
</rdf:RD>
In the resource shape of a defect, there is a link to a list of allowed values for "Filed Against"; neither of which work.
"https://localhost:9443/ccm/resource/itemOid/com.ibm.team.workitem.Category/_euaNlIHAEeK125wF_AwqHA" />
"https://localhost:9443/ccm/resource/itemOid/com.ibm.team.workitem.Category/_d99BAIHAEeK125wF_AwqHA" />
Perhaps I am looking in the wrong place for my filed against values. Perhaps I have constructed my RDF wrong? Any advice would be very welcome. Cheers,
Ian
|
One answer
Hello Ian
it seems that filed against attribute is referenced as <rtc_cm:filedAgainst
(whereas you are using rtc_cm:filedagainst)
Assuming this is case sensitive, you may want to try and use filedAgainst.
sample syntax found on the same page:
<rtc_cm:filedAgainst rdf:resource="https://localhost:9443/jazz/resource/itemOid/com.ibm.team.workitem.Category/_gAeFRJHLEeC_rYSykUtXXA"/>
Hope it helps.
Eric.
|
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.