"Preconditions have not been met" error when creating an RTC defect
![]()
Ian Giblett (26●2●14●16)
| asked Mar 21 '13, 1:07 p.m.
edited May 20 '13, 6:37 p.m. by Millard Ellingsworth (2.5k●1●24●31)
Hello,
I'm trying to create a new defect in RTC by using the OSLC services with Advanced Rest Client for Google.
Essentially, I'm trying to replicate what is being done in this video.
However, when I try to post my rdf, I am returned with the following message.
'Save Work Item' failed. Preconditions have not been met: The 'Filed Against' attribute needs to be set (work item
This puzzles me because as far as I can tell, I have already provded a filed against attribute.
See my RDF below,
<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>Ian's Demo defect </dcterms:title>
<dcterms:description> Defect created from HTTP POST request </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/_d99BAIHAEeK125wF_AwqHA"/>
</oslc_cm:ChangeRequest>
</rdf:RDF>
Many thanks,
Ian
|
One answer
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.
Comments
Check if the https://localhost:9443/ccm/resource/itemOid/com.ibm.team.workitem.Category/_d99BAIHAEeK125wF_AwqHA is returning any value or it is not found.
I'm having exactly the same issue, and the category URI returns a value with xml format and this structure