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

Help on OSLC Post to CQ

Hello all,

I am looking for examples on how to POST (create record) in ClearQuest using OSLC, Are there any examples available?

I am using CQ V 7.1.2.

Cheers,
Karthik

0 votes



4 answers

Permanent link
Hello Karthik

Please refer to the following "ClearQuest OSLC CM REST API" wiki page - it contains lots of examples.

https://jazz.net/wiki/bin/view/Main/RcmRestCmApi

If there are areas you want to see more examples, send your comments to us.

Thanks

- Yuhong

Yuhong Yin

CC/CQ CM Server & Integrations

0 votes


Permanent link
Thanks Yuhong.
I am looking for more examples in terms of the XML Node structure etc
Would be great if could point me in that direction

Cheers,
Karthik


Hello Karthik

Please refer to the following "ClearQuest OSLC CM REST API" wiki page - it contains lots of examples.

https://jazz.net/wiki/bin/view/Main/RcmRestCmApi

If there are areas you want to see more examples, send your comments to us.

Thanks

- Yuhong

Yuhong Yin

CC/CQ CM Server & Integrations

0 votes


Permanent link
Could anyone help me with OSLC samples to POST a clearquest record which contains reference list.

Best Regards,
Ranjeetha

0 votes


Permanent link
It should go like this:

https://test.com/cqweb/oslc/repo/REPO-NAME/db/DB-SET/record

set Content-Type of request body to "application/xml"

request body:
<?xml version="1.0" encoding="UTF-8"?>
<Defect xmlns="http://www.ibm.com/xmlns/prod/rational/clearquest/1.0/" xmlns:dc="http://purl.org/dc/terms/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:oslc_cm="http://open-services.net/xmlns/cm/1.0/">
<dc:type rdf:resource="https://test.com/cqweb/oslc/repo/REPO-NAME/db/DB-SET/record-type/16777666">Defect</dc:type>
<Project>DB-SET00000001</Project>
<Title>POST-TEST</Title>
</Defect>

keywords: OSCL V1.0 POST example sample

0 votes

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
× 10,941

Question asked: Dec 16 '10, 6:21 a.m.

Question was seen: 8,509 times

Last updated: Mar 07 '13, 5:11 a.m.

Confirmation Cancel Confirm