Why getting an invalid filter expression on @href from RQM 6.0.6.1 REST API
![]()
Hi,
the background of my question is to fetch all testcases (name, ID-> used for result later) linked to an architectureElement (input) from RQM 6.0.6.1 iFix013.
Currently I get all testcases. For perfomance reasons I would like to use filtering in the request already rather than filter in RPE.
Using strictFields=true, I got this error:
Error 400: AQXIN5017E The call to the Rational Quality Manager Reportable REST API contained an invalid filter expression: architectureElement/@href equals https://<host>/am/resource-rmm/1565991.
Request is:
https://<host>/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/testcase?fields=feed/entry/content/testcase/(identifier|title|architectureElement[@href='https://<host>/am/resource-rmm/1565991'])&strictFields=true
For debugging I even copied the href from the result that I received when using:
?fields=feed/entry/content/testcase[title='XYZ']/(identifier|title|architectureElement), to make sure I have the correct format.
But I am still getting an invalid filter expression. What am I doing wrong?
I am also faceing the same issue in the next step to fetch the latest executionResult for the test case (using identifier from above request). Request:
https://<host>/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/executionresult?fields=feed/entry/content/executionresult[isCurrent='true']/(*|testcase[@href='https://<host>/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/<projectArea>/testcase/urn:com.ibm.rqm:testcase:10487'])&strictFields=true
Thanks for your help,
Aaron
|
Accepted answer
![]()
Can you try
https://<host>/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/JKEBanking+(Quality+Management)/testcase?fields=feed/entry/content/testcase/(indentifier|title|architectureElement/@href='https://<host>/am/resource-rmm/1565991'])
Please refer Supported Resources and Properties section in ETM Reportable REST API (RQM Reportable REST API) wiki.
Aaron Troost selected this answer as the correct answer
Comments 1
Hello Subramanya,
thank you for your response.
I acutually used architectureElement/@href on the testcase request and testcase/@ref on the executionresult. So it should be according to documentation.
Regards,
Aaron
Can you try the URL in my answer with projectAreaName included?
Hello Subramanya,
that did the trick.
Seems like the filtering is only working inside a project and not on the complete server.
Thank you,
Aaron
|
One other answer
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.