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

how to find the REST API id of an RQM asset

 I am using the RQMCopyUtility (yes I know its unsupported), but as its given out with all installation I'm trying to use this to get some data from one server environment to another.   I wanted to test it out using a specific RQM test plan ID (177) which is the UUID .. the RQMCopy utility fails as its looking for REST API id of the asset not the UUID


How do we find what that is ... here is the jar command line I'm running 

java -jar RQMCopyUtility.jar -s=https://{servermame}:9443/qm/secure/service/com.ibm.qm.integration.service.IIntegrationService/resources/{projectname} -us=username -pws=userpswd -d=https://{servername}:9443/qm/{project name} -artifactType=testplan -artifactId=177 -i=remotescript -l=importlog.txt -force

0 votes



One answer

Permanent link

 As per the documentation https://jazz.net/wiki/bin/view/Main/RqmApi the URL to get the RQM asset with the reportable REST API based on your data above is: 

https://{servermame}:9443/qm/secure/service/com.ibm.qm.integration.service.IIntegrationService/{projectname}/{artifactType}/urn:com.ibm.rqm:{artifactType}:{artifactId}  


I am unsure about urn:com.ibm.rqm that might be incorrect. 

<o:p> </o:p>

Note that mine looks a bit different my <integrationUrl> is https://{servermame}:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService . (rqm not qm in the middle)
So mine is: 
https://{servermame}:9443/
qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/{projectname}/{artifactType}/urn:com.ibm.rqm:{artifactType}:{artifactId} (based on 7.0.2)

<o:p> </o:p>

The ETM Reportable REST API (is the only reportable jazz REST API that) supports PUT and POST operations. This might actually help supporting your use case. See this recent post: https://jazz.net/forum/questions/280227/cant-assign-rtc-defect-to-qm-executionresult-via-api 


Otherwise OSLC would be the API to look at. 

<o:p> </o:p>

0 votes

Comments

  I got a result, but I've tried all combinations of the value but the importlog returns this


06 May 2022 08:51:15,847-0400 [main]  INFO com.ibm.rqm.ct.CopyUtil: Attempting to create SSL_TLS context
06 May 2022 08:51:20,591-0400 [main]  INFO com.ibm.rqm.ct.CopyUtil: Starting: testplan tLZPoEGrEeiRIPLF5q7cbA

and ultimately fails 

in my return response from the URL this tLZPoEGrEeiRIPLF5q7cbA
 is also prefixed with slug__ which I added and still fails and also has a 177 at the end also tried and also failed. 

If you want to use the composed URL, you have to perform a GET on that URL. I do not know if the URL Util uses them. The documentation explains what a slug is.

The information given is pretty thin. Good luck, I am off for the next weeks. 

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,938
× 7,495
× 1,325

Question asked: May 05 '22, 10:04 a.m.

Question was seen: 1,665 times

Last updated: May 06 '22, 9:44 a.m.

Confirmation Cancel Confirm