RQM REST - How to get more than 50 items in response?
We are creating a GET request for RQM using the following URL:
http://server/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/PROJEKTNAME/executionworkitem?fields=feed/entry/content/executionworkitem/(identifier|testplan[@href='TESTPLAN_IDENTIFIER'])
This returns a set of Executionworkitems for the project "PROJECTNAME" and testplan "TESTIDENTIFIER".
Unfortunately the returned XML only contains 50 ExecutionWorkitems as a maximum.
How can I configure the request to get the full amount of items (in our tested case 118)???
Thanks in advance for your answer.
6 answers
The size of the feed page is variable. When a feed spans multiple pages, a link to the next page is provided in the current page (see ATOM paging specification). By default, the feed page size is set to 50 resources, but it can be modified to a maximum of 1000 resources. To set the feed page size, set the following RQM Integration Component (
com.ibm.rqm.integration.service.internal.IntegrationService
) advanced server configuration property (see Configuring advanced properties in the Collaborative Lifecycle Management Online Help):
-
Max Feed Entries/Page
?token=_C8DasVZWEeG429XX9GztHA%26page=1
where the &'s are escaped (e.g. %26). To use the link the &'s must be unescaped by turning all instances of "%26" to "&". That would make the query segment look something like:
?token=_C8DasVZWEeG429XX9GztHA&page=1
Comments
2 votes
I'm at a loss trying to understand how providing the link https://jazz.net/wiki/bin/view/Main/RqmApi#Feeds solves this answer?
How does one actually make the change? If you are not an admin, only having a RESTful request, what does one need to include in the REST get / post such that they can change the max entries per page? The references provided seem to give no clue / indication to this,
Is "com.ibm.rqm.integration.service.internal.IntegrationService" appended to the URL in some manner?
Is "Max Feed Entries/Page" appended to the URL in some manner?
Is there an example that actually shows this in the Rest URL so I know how it's syntax? I just can't figure out what to do with these two parameters in a RESTful request.
Comments
Hi Ara,
If the project contains more than 1000 artifacts (test scripts) then how to export next set after exporting first 1000 artifacts? i have refererred your explanation above "By default, the feed page size is set to 50 resources, but it can be modified to a maximum of 1000 resources."
Thanks,
Anitha
"<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title type="text">testcase ATOM feed for project area Test (QM)</title>
<id>https://clm4.local/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Test+%28QM%29/testcase</id>
<link href="https://clm4.local/qm/web/console/" rel="alternate"/>
<link rel="self" href="https://clm4.local/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Test+%28QM%29/testcase?oslc_config.context=https%3A%2F%2Fclm4.local%2Fgc%2Fconfiguration%2F6&token=_GOmpoC1nEeuQd9wKCQ4OUA&page=0"/>
<link rel="next" href="https://clm4.local/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Test+%28QM%29/testcase?oslc_config.context=https%3A%2F%2Fclm4.local%2Fgc%2Fconfiguration%2F6&token=_GOmpoC1nEeuQd9wKCQ4OUA&page=1"/>
<link rel="last" href="https://clm4.local/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Test+%28QM%29/testcase?oslc_config.context=https%3A%2F%2Fclm4.local%2Fgc%2Fconfiguration%2F6&token=_GOmpoC1nEeuQd9wKCQ4OUA&page=39"/>
<entry xmlns="http://www.w3.org/2005/Atom">
[...]"