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

"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

0 votes

Comments

1 vote

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

1 vote

Comments

Do you know if is there any solution for 4.0.1 (RTC-I20121113-2333 / JF-I20121109-1457) ?

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 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
× 516

Question asked: Mar 21 '13, 1:07 p.m.

Question was seen: 9,349 times

Last updated: May 27 '13, 8:55 a.m.

Confirmation Cancel Confirm