It's all about the answers!

Ask a question

How to retrieve all testcases data using REST API.


Paraschivoiu Alexandru (111) | asked Apr 17, 4:10 a.m.

Hello there, I currently use this API URL :


GET https:/example.com/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/projectName/testcase?fields=feed/entry/content/testcase/(*testplan/@href=%27https://example.com/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/projectName/testplan/urn:com.ibm.rqm:testplan:0%27])


With this url I can only get one testcase data, which I don't really know from where it is getting it, because I tried to access all the testcases and only shows one, I think I should select the stream of the projectArea or component of it but I didn't found anything helpful on the web.

Can you help me to achieve getting all the testcases data from my projectArea and for a specific stream/component?

One answer



permanent link
Ralph Schoon (63.3k33646) | answered Apr 17, 4:40 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
edited Apr 17, 4:44 a.m.

This is the API documentation: https://jazz.net/wiki/bin/view/Deployment/ELMProductAPILanding

There are various APIs for ETM, especially the OSLC and the Reportable REST API https://jazz.net/wiki/bin/view/Main/RqmApi which you are using.

Please consider reading that API documentation. I know that the documentation lacks a lot of examples. Here is a link to a place you might want to look at: https://sleroyblog.wordpress.com/2013/04/09/querying-rqm-40-through-oslc-and-rest-api/

I am not sure if you can ever get "All" items. This would overwhelm the server and the client. Usually any request is paged at best. See https://rsjazz.wordpress.com/2022/03/02/ewm-reportable-rest-api/ which is for EWM, but the posts around this one show the paging mechanisms as well as some other important concepts. 


You would likely have to find the project areas first, then query the project areas items of the type you want, then query any item you want from the result list.

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.