It's all about the answers!

Ask a question

REST API - Usage of wildcard in filtering


Subramanya Prasad Pilar (4.6k16) | asked Feb 19 '14, 11:41 a.m.
edited Feb 19 '14, 11:42 a.m.
As mentioned in RQM REST wiki,
<feedUrl>?fields=feed/entry/content/testplan[title='test plan %']/description
should return the description property of the test plan(s) with a title property starts with 'test plan '.

I do not see this working.

https://server:port/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/JKEBanking (Quality Management)/testplan?fields=feed/entry/content/testplan[title='System %']/(title|description) is expected to return 2 test plan titles and descriptions ('System Verification' and 'System TestPlan') but returns titles and descriptions of all test plans. Is anything wrong here?


Comments
Subramanya Prasad Pilar commented Feb 19 '14, 12:16 p.m.

I am using RQM 4.0.5.
https://server:port/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/JKEBanking (Quality Management)/testplan?fields=feed/entry/content/testplan[title='System X']/(title|description)&wildcard=X is working as expected.

One answer



permanent link
Paul Slauenwhite (8.4k12) | answered Feb 19 '14, 4:29 p.m.
FORUM MODERATOR / JAZZ DEVELOPER
A couple of comments:

1. When using the % wildcard, be sure to URL-encode the fields parameter value.

2. Note https://jazz.net/wiki/bin/view/Main/RqmApi#strictFields.  The behavior for RQM 4.x is equivalent to strictFields=false.

3. Note Fields filtering with a user-defined wildcard returns invalid results. (103020).

Your answer


Register or 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.