RqmApi - Filtering testcases by custom attribute
CLM 4.0.4
I am trying to use rest API to GET all test cases filtered by specific custom attribute. For the sake of this example, lets name it 'myattribute'. The applicable values are A,B or C. I want to filter all testcases where myatrribute is A or B.
My initial trial is:
https://<RQMServer>:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/<ProjectArea>/testcase?fields=feed/entry/content/testcase/*
The documentation is somewhat unclear.
Please advice,
Liora
Accepted answer
The filter you need is
/testcase?fields=feed/entry/content/testcase[customAttributes/customAttribute/name="myattribute" and (customAttributes/customAttribute/value="A" or customAttributes/customAttribute/value="B")]/*
2 other answers
Another question, how do I filter test cases with an unassigned category?
Liora
Comments
1 vote
In this example query, the result would return the testcase also, if another attribute, lets say 'myAttribute2', would have the value "A" or "B" but "myAttribute" doesn't.
It seems like it doesn't matter if the value "A" or "B" is assigned to "myAttribute" or "myAttribute2".
Is there any possibility to get the result if and only if "A" or "B" is assigned to "myAttribute"?
It seems like it doesn't matter if the value "A" or "B" is assigned to "myAttribute" or "myAttribute2".
Is there any possibility to get the result if and only if "A" or "B" is assigned to "myAttribute"?