It's all about the answers!

Ask a question

How to add a category value to an existing Category in ETM using API


Bharath Rao (915241) | asked Dec 11 '23, 6:45 a.m.

 In an ETM project area, I have a Category "TestCat" defined with values "Test1" and "Test2" defined for Test Cases.

I would like to add a new value "Test3" to TestCat. How can I achieve this?

One answer



permanent link
Bharath Rao (915241) | answered Dec 11 '23, 6:47 a.m.
edited Dec 11 '23, 6:48 a.m.

Here are the steps:


Note: To get a Category Value for a Test Case Category, you can perform a GET on the Test Case which will provide the Category value URL to be used in Step (a)

a) Perform a GET using RestClient on the URL of an existing Category value that is part of the Category where the value must be added.

https://<hostname>/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/<PA>/category/<Category ID>

Eg:

https://<hostname>/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/<PA UUID>/category/urn:com.ibm.rqm:category:_AHR6QZgWEe6HKMoYyjvb2w

b) In the GET response remove the identifier <nsx:identifier>...</nsx:identifier> and updated <nsx:updated>...</nsx:updated> blocks in the XML. Modify the title block <nsx:title>...</nsx:title> with the intended category value name.

c) Perform a PUT with the modified XML content from step (b) on the Category URL with a unique external ID.

https://<hostname>/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/<PA ID>/category/<ExternalID>

Headers:

Accept: application/xml

Content-Type: application/xml

Eg:

https://<hostname>/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/<PA UUID>/category/MyTestCategory1

Reference:

RQM API: https://jazz.net/wiki/bin/view/Main/RqmApi

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.