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

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

 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?

0 votes



One answer

Permanent link

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

0 votes

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

Question asked: Dec 11 '23, 6:45 a.m.

Question was seen: 871 times

Last updated: Dec 11 '23, 6:48 a.m.

Confirmation Cancel Confirm