Why can't I filter the executionworkitem using ETM 7 REST API?
Hello all,
I used to filter the executionworkitem in RPE using this script:
BaseUrl + ProjectArea + "/executionworkitem?sort=descending&fields=fields/content/executionworkitem/(testplan[@href='"+identifier+"']|configuration|identifier|testscript|currentexecutionresult|testcase[@href='" + href + "'])";
Until RQM 6, I got the expected result. Now, in ETM 7.0.2, this kind of request returns me ALL the executionworkitem list, so the filter no longer works and I really don't understand why.
Please, somebody can help me?
Accepted answer
You should now URL encode identifier and href values. Also, use project alias instead of ProjectArea name.
You can check the new notes added in https://jazz.net/wiki/bin/view/Main/RqmApi#fields
In RPE template, you can try using Script Expression like the following:
baseURL + "/executionresult?fields=feed/entry/content/executionresult/(*%7Ctestcase[@href='" + encodeURIComponent(identifier) + "'])";