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

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!

0 votes


Accepted answer

Permanent link

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

0 votes


3 other answers

Permanent link

A defect issue was created here: https://jazz.net/jazz02/web/projects/Rational%20Quality%20Manager#action=com.ibm.team.workitem.viewWorkItem&id=179920

0 votes


Permanent link

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?

0 votes


Permanent link

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.

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,930
× 478
× 218
× 201

Question asked: Jan 25 '18, 8:27 a.m.

Question was seen: 4,306 times

Last updated: Feb 15 '19, 7:56 a.m.

Confirmation Cancel Confirm