Work Item query with > 1000 results
I'm running a query for all work items for a specified iteration.
After a call to queryClient.getResolvedExpressionResults(), the "total values" are different:
results.getResultSize(monitor).getTotal()
vs.
results.getResultSize(monitor).getTotalAvailable();
How can I get the "rest" of the results?
Thanks,
Dana
After a call to queryClient.getResolvedExpressionResults(), the "total values" are different:
results.getResultSize(monitor).getTotal()
vs.
results.getResultSize(monitor).getTotalAvailable();
How can I get the "rest" of the results?
Thanks,
Dana
2 answers
1000 items is the default result set limit (configurable in the Advanced
Properies Admin Web UI).
Programatically, you can also set the limit like this:
IQueryResult<IResolvedResult<IWorkItem>> result=
fgQueryClient.getResolvedExpressionResults(fgProjectArea, term,
IWorkItem.SMALL_PROFILE);
result.setLimit(5000);
--
Regards,
Patrick
Jazz Work Item Team
Properies Admin Web UI).
Programatically, you can also set the limit like this:
IQueryResult<IResolvedResult<IWorkItem>> result=
fgQueryClient.getResolvedExpressionResults(fgProjectArea, term,
IWorkItem.SMALL_PROFILE);
result.setLimit(5000);
--
Regards,
Patrick
Jazz Work Item Team
Comments
Does this mean that it's configured per server but that the client may override the setting?
If so, should there be a property in the eclipse client somewhere to be found if one wanted to change it?
Thanks,
/Morten
It is configured per server, as it is a protective measure against
unnecessary load.
It is not configurable by users per client.
--
Regards,
Patrick
Jazz Work Item Team
The limitation on 1000 work items in an HTTP query is being removed in 6.0 ( Remove the limit on OSLC 1.0 query results and ignore the “Maximum Query Result Set Size” limit for calls from QP (336705) ).