It's all about the answers!

Ask a question

Root category values not available


Steffen Padberg (132) | asked Aug 20 '19, 8:03 a.m.
 Hello, 

when I try to retrieve the CategoryType values in QM via REST API it does work only for child CategoryTypes, where I get an XML answer with a valueset element. For root CategoryTypes there is no such element, even if there are clearly values set. 

Is this a bug or is it possible to retrieve values of root CategoryTypes? 

Thanks in advance!

One answer



permanent link
Antonio Napoles (2861) | answered Nov 22 '19, 4:53 p.m.
JAZZ DEVELOPER

 Hi,


The valueset is a set of categories from the categoryType parent grouping a subset of a categoryType. So root categories cannot have a valueset as they have not a parent. You could get the categories for a category type by getting the feed of categoried filtered by categoryType. Following is an example:

https://serverdomain:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/PROJECT+ALIAS/category?fields=feed/entry/content/category/categoryType[@href='categoryTypeUri']

where categoryTypeUri kind of: https://serverdomain:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/PROJECT+ALIAS/categoryType/urn:com.ibm.rqm:categoryType:_uuid

regards,
napoles

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.