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

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

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.

1

1 vote



One answer

Permanent link

 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:


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
× 481
× 235
× 219
× 137

Question asked: Jul 10 '18, 2:46 a.m.

Question was seen: 3,364 times

Last updated: Jul 10 '18, 6:34 a.m.

Confirmation Cancel Confirm