Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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?

0 votes


Accepted answer

Permanent link

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) + "'])";

Alfonso Serpe selected this answer as the correct answer

0 votes

Comments

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

Your answer

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

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Nov 12 '21, 8:52 a.m.

Question was seen: 633 times

Last updated: Nov 13 '21, 7:18 a.m.

Confirmation Cancel Confirm