It's all about the answers!

Ask a question

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


1
1
DAVID GUO (35412) | asked Apr 12 '20, 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.7k21109138) | answered Apr 13 '20, 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 '20, 12:43 a.m.

Maximum Query Result Set Size and workaround the issue.


permanent link
Dinesh Kumar B (4.1k413) | answered Apr 13 '20, 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.


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.