How to fetch a Test Plan using its webId attribute in RQM via Rest API
![](http://jazz.net/_images/myphoto/4f7f5d4590d1cd1dd90d026b208381d2.jpg)
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
![](http://jazz.net/_images/myphoto/4f7f5d4590d1cd1dd90d026b208381d2.jpg)
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:
https://localhost/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/projectA/testplan/urn:com.ibm.rqm:testplan:1