It's all about the answers!

Ask a question

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

Dmitriy Drinfeld (1112) | asked Jun 21 '12, 10:54 a.m.
edited Jun 21 '12, 11:01 a.m. by Seth Packham (1.4k42213)
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)...

One answer

permanent link
Pramod Chandoria (2.1k11220) | answered Jun 21 '12, 12:36 p.m.
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
  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
    And support you received something slug__GCglELu-EeGBn97XJrT_5Q in content location then url will become https://localhost:9443/jazz/service/

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

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

Hope it helps

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.