It's all about the answers!

Ask a question

How to solve the limit of 1000 work item records obtained through OSLC?


David Guo (2537) | asked Apr 12, 7:49 a.m.

There are about 6,000 task work item records in the RTC project area. When accessing the following URL through OSLC to obtain the xml record, it is found that only a maximum of 1000 records can be returned. How can I solve this problem?




It can be clearly seen from the header of the returned xml file that there is a totalCount which limits the return of up to 1000 records. Even using context to recursively access can only get 1000 records.

Accepted answer


permanent link
Don Yang (7.2k2192126) | answered Apr 13, 12:01 a.m.
Hi, David

Please go to https://yourserver:port/ccm/admin#action=com.ibm.team.repository.admin.configureAdvanced
and increase the property value:
com.ibm.team.workitem.service.internal.query.QueryRepositoryService >> Maximum Query Result Set Size
and workaround the issue.

Hopefully this helps.
Thanks
David Guo selected this answer as the correct answer

2 other answers



permanent link
angeline christensen (11) | answered Apr 13, 12:43 a.m.

Maximum Query Result Set Size and workaround the issue.


permanent link
Dinesh Kumar (4.0k413) | answered Apr 13, 4:59 a.m.
JAZZ DEVELOPER
If you wish to do the same via API, refer to Ralph's below blog post :

The limit also applies to the API, however, in the API it is possible to get around it to get the full result set. To do that, you have to change the limit of the result set. It is necessary to do that before you do anything else with the result set. The limit can not be changed after you accessed the results.

The code to change the limit for unresolved results looks like below:

((QueryResultIterator) unresolvedResults).setLimit(Integer.MAX_VALUE);
    

The code to change the limit for a resolved result set is simpler.

resolvedResults.setLimit(Integer.MAX_VALUE);
    

Your answer


Register or to post your answer.