Root category values not available
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
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
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.