It's all about the answers!

Ask a question

Creating artifact in different components in RQM using OSLC API (configuration management enabled)


Hugo Troyan (112) | asked Jul 28 '20, 3:03 a.m.

Hello,

I am having trouble creating artifacts in different components of Project Area with configuration management enabled using the RQM OSLC API. I successfully create any kind of artifact in the initial component but I can't figure out how to create artifacts in other components of this Project Area.

My http request to the RQM OSLC API:
Method: POST
URL: https://RQM_HOST/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/PA_UUID/testcase
Headers:
'oslc-core-version': '2.0'
'Accept': 'application/rdf+xml'
'Content-type': 'application/rdf+xml'
'X-Jazz-CSRF-Prevent': 'value_of_auth_cookie'

Body:

<?xml version='1.0' encoding='utf-8'?>
<ns0:testcase xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:ns0="http://jazz.net/xmlns/alm/qm/v0.1/" xmlns:oslc_config="http://open-services.net/ns/config#">
   <dc:title>Title</dc:title>
   <dc:description>Description</dc:description>
   <ns0:weight>100</ns0:weight>
   <ns0:category term="Safety Related" value="False" />
   <ns0:category term="Security Related" value="True" />
   <oslc_config:component rdf:resource="https://RQM_HOST/qm/oslc_config/resources/com.ibm.team.vvc.Component/Component_UUID" />
</ns0:testcase>

This works fine but always create the resource in the initial component. The <oslc_config:component> tag has no effect at all. I also tried with this one:
<oslc_config:component rdf:resource="https://RQM_HOST/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/PA_UUID/component/Component_UUID" />


If you can tell me what I am missing...
Thanks.

4 answers



permanent link
Jim Amsden (29337) | answered Jul 28 '20, 7:27 a.m.

 Components are the unit of organization of versions of versioned resources. You would use the Configuration Management specification to mover versions from one component to another.



permanent link
Hugo Troyan (112) | answered Jul 28 '20, 9:33 a.m.
I've found a way to create artifacts in a component when in a global configuration using the header :
'configuration-context': 'GCconf_URI'

It doesn't work with a local configuration. Why ?

permanent link
aresha vora (219) | answered Sep 23 '20, 2:55 p.m.
set vvc.configuration header with stream url of given component. each component has at least 1 stream which is initial stream if no user defined stream created. this header working for local streams.

https://{host:port}/rm/cm/stream/_BINHwP1oEeqcUpiimAev0A

permanent link
Nick Crossley (1463) | answered Sep 23 '20, 4:57 p.m.
JAZZ DEVELOPER

I believe you are mixing the ETM REST API as specified at https://jazz.net/wiki/bin/view/Main/RqmApi with the OSLC API as specified at https://jazz.net/wiki/bin/view/Main/RqmOslcQmV2Api and in the OSLC QM specification at https://open-services.net/specifications/.


URIs containing the path element "com.ibm.rqm.integration.service.IIntegrationService" typically belong to the REST API; OSLC APIs are different; in general, you cannot mix the URIs of one API with the operations or capabilities from the other.

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.