It's all about the answers!

Ask a question

Help on OSLC Post to CQ


Karthik Krishnan (8825118163) | asked Dec 16 '10, 6:21 a.m.
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

4 answers



permanent link
Helmut Kuhlmann (11) | answered Mar 07 '13, 5:11 a.m.
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


permanent link
Ranjeetha Hegde (141) | answered May 27 '11, 4:40 a.m.
Could anyone help me with OSLC samples to POST a clearquest record which contains reference list.

Best Regards,
Ranjeetha

permanent link
Karthik Krishnan (8825118163) | answered Dec 17 '10, 12:20 a.m.
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 &quot;ClearQuest OSLC CM REST API&quot; 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 &amp; Integrations

permanent link
Yuhong Yin (25123) | answered Dec 16 '10, 11:52 a.m.
JAZZ DEVELOPER
Hello Karthik

Please refer to the following &quot;ClearQuest OSLC CM REST API&quot; 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 &amp; Integrations

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.