How to query all test plans of a specific project component
Hello,
I want to query all test plans of a specifc project component.
So far, I tried to build a query URL based on the RQM REST API documentation.
Thereby I defined a filter expression, that should include all test plan's properties whereby the component property references to a specific component resource.
Here is an example:
https://server:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/PROJECT/testplan?fields=feed/entry/content/testplan/(*|component[@href='https://server/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/PROJECT/component/_gZ3YUDADEeez384Nut8O4Q'])
This does return only these test plan of another component.
My questions:
Is this the correct way of retrieving test plans of a specific project component?
If this is the intended way, might this be an issue in the RQM REST API?
Thank you in advance!
Accepted answer
Hi Benjamin,
This is working as designed. In your case, you would use the local configuration in the RQM Reportable REST API request. If you use the global configuration, we pick the first local configuration in the global configuration. Finally, if you don't provide a configuration, we use the default configuration for the project area.
3 other answers
A defect issue was created here: https://jazz.net/jazz02/web/projects/Rational%20Quality%20Manager#action=com.ibm.team.workitem.viewWorkItem&id=179920
As doucumented, component is not a fields filter (see https://jazz.net/wiki/bin/view/Main/RqmApi#SupportedFieldsResources). In your case, use https://jazz.net/wiki/bin/view/Main/RqmApi#oslc_config_context, with a local configuration for the component.