"Preconditions have not been met" error when creating an RTC defect
Ian Giblett (26●2●13●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
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. Comments
Walter Ureta
commented May 27 '13, 8:46 a.m.
Do you know if is there any solution for 4.0.1 (RTC-I20121113-2333 / JF-I20121109-1457) ?
Indradri Basu
commented May 27 '13, 8:55 a.m.
To get the hotfix mentioned in the defect, you may want to open a PMR and get in touch with Rational Support.
|
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