"Preconditions have not been met" error when creating an RTC defect
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
What version are you on?
This may be related to the following defect:
https://jazz.net/jazz/web/projects/Rational%20Team%20Concert#action=com.ibm.team.workitem.viewWorkItem&id=254154
where certain attributes were set to readonly. If you are on 4.0.2, open up a PMR with IBM Support to obtain a hot fix.
This may be related to the following defect:
https://jazz.net/jazz/web/projects/Rational%20Team%20Concert#action=com.ibm.team.workitem.viewWorkItem&id=254154
where certain attributes were set to readonly. If you are on 4.0.2, open up a PMR with IBM Support to obtain a hot fix.
Comments
Aradhya K
JAZZ DEVELOPER Apr 16 '13, 12:34 a.m.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.
1 vote
Walter Ureta
May 24 '13, 9:22 a.m.I'm having exactly the same issue, and the category URI returns a value with xml format and this structure