It's all about the answers!

Ask a question

"Preconditions have not been met" error when creating an RTC defect


Ian Giblett (2621316) | asked Mar 21 '13, 1:07 p.m.
edited May 20 '13, 6:37 p.m. by Millard Ellingsworth (2.5k12431)
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


Comments
1
Aradhya K commented Apr 16 '13, 12:34 a.m.
JAZZ DEVELOPER

Walter Ureta commented 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

<rtc_cm:Project rdf:about="https://server:9447/ccm/oslc/projectareas/_GxMwkCPIEeKKkdF3Dzuveg"><dc:title>Title (Change Management)</dc:title><dc:description>Description (Change Management)</dc:description><rtc_cm:detailedDescription/><rtc_cm:initialized>true</rtc_cm:initialized><rtc_cm:archived>false</rtc_cm:archived><rtc_cm:members oslc_cm:collref="https://server:9447/ccm/oslc/projectareas/_GxMwkCPIEeKKkdF3Dzuveg/rtc_cm:members"/><rtc_cm:administrators oslc_cm:collref="https:/server:9447/ccm/oslc/projectareas/_GxMwkCPIEeKKkdF3Dzuveg/rtc_cm:administrators"/></rtc_cm:Project>;









One answer



permanent link
Stephanie Bagot (2.1k1513) | answered May 24 '13, 8:32 p.m.
FORUM MODERATOR / JAZZ DEVELOPER
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


Register or 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.