It's all about the answers!

Ask a question

Why can't I filter the executionworkitem using ETM 7 REST API?

Alfonso Serpe (131) | asked Nov 12 '21, 8:52 a.m.

 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

permanent link
Subramanya Prasad Pilar (4.6k16) | answered Nov 13 '21, 5:06 a.m.

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

In RPE template, you can try using Script Expression like the following:
baseURL + "/executionresult?fields=feed/entry/content/executionresult/(*%7Ctestcase[@href='" + encodeURIComponent(identifier) + "'])";

Alfonso Serpe selected this answer as the correct answer

Alfonso Serpe commented Nov 13 '21, 7:18 a.m.

Thanks so much! I can't express my gratitude to you! You've really saved my health!

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.