It's all about the answers!

Ask a question

Filed Against attribute needs to be set, even though I already have

Ian Giblett (2621216) | asked Mar 26 '13, 1:11 p.m.
edited Mar 26 '13, 1:46 p.m. by Ralph Schoon (62.3k33643)

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 = "" xmlns:oslc=""
xmlns:oslc_cm="" xmlns:rdf=""
<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/"/>


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/" />
"https://localhost:9443/ccm/resource/itemOid/" />

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,


One answer

permanent link
Eric Jodet (6.3k5111120) | answered Apr 03 '13, 7:51 a.m.
 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/"/>
Hope it helps.

Your answer

Register or to post your answer.