cancel
Showing results for 
Search instead for 
Did you mean: 

Pagination not working with get attachments REST call

hguser
Champ in-the-making
Champ in-the-making
Hi ,

I need to add pagination therefore, my get attachments request call is as below, with the start and size set.

var attachments = get(httpUrl + "/bpmn/runtime/tasks/" + id  + "/attachments?start="+start+ "&size=10",null,headers,"json").data;

but this always returns the entire data set. Even if i add static values like below, it always returns the entire data set.

var attachments = get(httpUrl + "/bpmn/runtime/tasks/" + id  + "/attachments?start=5&size=10",null,headers,"json").data;

Pagination is working for other REST calls such as get tasks. What could be the issue here?

1 REPLY 1

trademak
Star Contributor
Star Contributor
It's correct what you are saying. The task attachments resource returns the whole list of attachments for the requested task there's no pagination logic. It's also not a query REST resource, where pagination is supported.

Best regards,