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

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

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

0 votes



One answer

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

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
× 7,495
× 516
× 479

Question asked: Mar 26 '13, 1:11 p.m.

Question was seen: 4,933 times

Last updated: Apr 03 '13, 7:51 a.m.

Confirmation Cancel Confirm