AND Condition not working on RQM REST API
Hello.
I have a Testcase named "tbf" with a description "abc".
I want to find by Title AND Description using REST API.
Doing the following call:
https://server/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/PA/testcase?fields=feed/entry/content/testcase[title%3D%27tbf%27+and+description%3D%27xs%27]
which decoded is
https://server/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/PA/testcase?fields=feed/entry/content/testcase[title='tbf' and description='xs']
As I am searching for the wrong description text, so I would expect not to get the Testcase as a Result.
Instead, I get any Testcases with the Title "tbf"
Name Uniqueness is disabled.
According to the wiki, it should work like that
-
?fields=feed/entry/content/testplan[title='test plan title' and description!='test plan description']/(title|description|testcase)
- Include the title, description, and test case properties of the test plan(s) with a title property equal to 'test plan title' and a description property not equal to 'test plan description'.
Any idea of what I might do wrong?
Thank you!
Version: 6.0.3
Accepted answer
Description is not a filtering property (see https://jazz.net/wiki/bin/view/Main/RqmApi#SupportedFieldsResources). Also, consider using https://jazz.net/wiki/bin/view/Main/RqmApi#strictFields.