It's all about the answers!

Ask a question

How to fetch a Test Plan using its webId attribute in RQM via Rest API


1
1
Thiruvenkadam Dhanaraj (2511) | asked Jul 10 '18, 2:46 a.m.

I tried fetching the testplan with its WebId i get all test plans. what i need is all attributes of a specific test plan for the given webId.

i tried this query,
https://localhost/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/projectA/testplan?fields=feed/entry/content/testplan[webId=1]

i get all entry of testplans with its webId. But i need a testplan whose webId is 1.

Could you please help me on fetching the exact testplan whose webId is 1.

Many thanks in advance.

One answer



permanent link
Paul Slauenwhite (8.4k12) | answered Jul 10 '18, 6:34 a.m.
FORUM MODERATOR / JAZZ DEVELOPER

 Hi Thiruvenkadam,


Unfortunately, the test plan webId property cannot be used in a fields filter (see https://jazz.net/wiki/bin/view/Main/RqmApi#SupportedFieldsResources).  In addition, you need the /* appended to your fields expression to select all the test plan properties (see https://jazz.net/wiki/bin/view/Main/RqmApi#FieldsExamples).  Finally, when using fields selection/filtering (https://jazz.net/wiki/bin/view/Main/RqmApi#fields), use the strictFields=true request parameter (see https://jazz.net/wiki/bin/view/Main/RqmApi#strictFields) to force invalid fields requests to fail with an error message.

To solve your issue, you can use a resource URL with an internal:


Your answer


Register or to post your answer.