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

Can I enforce a certain ID of an artifact when I upload through RQM URL Tool?

Is it possible to enforce a certain ID on an artifact that is being uploaded to the server using RQM URL Tool? I.e. I want a test case to have a certain ID so that I can add it to the test suite (which I also upload through RQM URL Tool later)...

1

1 vote



One answer

Permanent link
Hi Dmitry,
When you upload a artifact to RQM using REST API,
  1. Either you provide an externalID at the end or url and PUT resource. You already have id :)
    An example of testscript URL with externalID provided
    https://localhost:9443/jazz/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Quality+Manager/testscript/myexternalID
  2. If externalID not provided, you can POST it, then RQM might auto generate a id for you e.g. slug__GCglELu-EeGBn97XJrT_5Q. In this case you should look for the response header Content-Location , it's value you should use to link other artifact.
    An example of testscript URL without externalID provided
    https://localhost:9443/jazz/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Quality+Manager/testscript
    And support you received something slug__GCglELu-EeGBn97XJrT_5Q in content location then url will become https://localhost:9443/jazz/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Quality+Manager/testscript/slug__GCglELu-EeGBn97XJrT_5Q

ExternalID is an optional unique id given to a artifact where two artifact of same type (say Test Case) can not have same externalID.
An alternative to generate url without using externalID is this way
https://localhost:9443/jazz/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Quality+Manager/testscript/urn:com.ibm.rqm:testscript:4

Here testscript is type of resource and 4 is the internal integer id.

Hope it helps

1 vote

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
× 12,029

Question asked: Jun 21 '12, 10:54 a.m.

Question was seen: 6,814 times

Last updated: Jun 21 '12, 12:36 p.m.

Confirmation Cancel Confirm