It's all about the answers!

Ask a question

RQM API - Resource Group URL different in form from the rest


Dano Currie (51109) | asked Apr 16 '10, 2:29 p.m.
JAZZ DEVELOPER
Hi All,
I was using a set of scripts to experiment with import/export of data and found that the URL to extract Resource Groups is rather different from the others. For instance, to get Test Cases, Test Plans and Lab Resources, For instance, to get the lab resource # 1, I could use a URL of the form:
https://localhost:9443/jazz/secure/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Quality%20Manager/labresource/urn:com.ibm.rqm:labresource:1


But to get the Lab Group # 1 out of RQM the URL form was:

https://<host>:9443/jazz/secure/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Quality%20Manager/resourcegroup/RG1

the change from "urn:com.ibm.rqm.labresource:1" to "RG1" was enough for me to have to program conditional statements into my script.

Plus on the RQM-API page on jazz.net I didn't yet see a clue about this.

This loused up my scripting to export and import until I found it out by trial and error with a Web Browser. I've got to see if the "insert" script will work with these alternative URLs. I wanted to pull info from RQM into an external ASCII (XML) set of files to make it easier to populate another RQM instance with the same data later.

If we can maintain the same form of the URL then we could automate such access more easily.

One answer



permanent link
Antonio Napoles (2861) | answered Apr 20 '10, 12:08 p.m.
JAZZ DEVELOPER
Hi Dano,

Sorry. The integer at the end of the id is an internally generated id used when no id provided as in a "post". The urn... part in the API is added so we can distinguish these id from the user supplied externalIds as "RG1".

regards,
Napoles


Hi All,
I was using a set of scripts to experiment with import/export of data and found that the URL to extract Resource Groups is rather different from the others. For instance, to get Test Cases, Test Plans and Lab Resources, For instance, to get the lab resource # 1, I could use a URL of the form:
https://localhost:9443/jazz/secure/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Quality%20Manager/labresource/urn:com.ibm.rqm:labresource:1


But to get the Lab Group # 1 out of RQM the URL form was:

https://<host>:9443/jazz/secure/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Quality%20Manager/resourcegroup/RG1

the change from "urn:com.ibm.rqm.labresource:1" to "RG1" was enough for me to have to program conditional statements into my script.

Plus on the RQM-API page on jazz.net I didn't yet see a clue about this.

This loused up my scripting to export and import until I found it out by trial and error with a Web Browser. I've got to see if the "insert" script will work with these alternative URLs. I wanted to pull info from RQM into an external ASCII (XML) set of files to make it easier to populate another RQM instance with the same data later.

If we can maintain the same form of the URL then we could automate such access more easily.

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.