It's all about the answers!

Ask a question

How to query all test plans of a specific project component


Benjamin Röhl (120317) | asked Jan 25 '18, 8:27 a.m.

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


permanent link
Paul Slauenwhite (8.3k12) | answered Jan 31 '18, 6:49 a.m.
FORUM MODERATOR / JAZZ DEVELOPER

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.

Benjamin Röhl selected this answer as the correct answer

3 other answers



permanent link
Paul Slauenwhite (8.3k12) | answered Jan 29 '18, 6:50 a.m.
FORUM MODERATOR / JAZZ DEVELOPER

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.


permanent link
Benjamin Röhl (120317) | answered Jan 30 '18, 7:38 a.m.

This works for local configuration, yes.

But, in case of a global configuration, which assembles two components of the same project, it does not work.
It seems, it is returning all test plans of the first component, which is found in that global configuration.

Is this a known issue?


Your answer


Register or to post your answer.