cancel
Showing results for 
Search instead for 
Did you mean: 

Why task list api response is giving only 10 records?

anitapatil_bld
Confirmed Champ
Confirmed Champ

Hi All,

I am using the following api to list the tasks. Called the api through rest template. 

In response body I am getting only 10 records even though the tasks are more than 10, means total is 20 but size it is rendering only 10.

Is there any way to increase the default size of the api? If yes where can I change and what is the way?

4 REPLIES 4

kintu_barot
Star Collaborator
Star Collaborator

Add the 'size' in the json body as following:

{"taskCompletedAfter":"2018-06-16","size":20,"start":0}

Thanks

Kintu

ContCentric

Regards,
Kintu

anitapatil_bld
Confirmed Champ
Confirmed Champ

Hi Kintu,

Thanks for the reply, I had given size and start also in my request body to the api then too it is giving 10 records only.

Hi Anita,

I have just tested it by manually passing the same JSON body in POST request using Postman.

It gives me the correct result. 

You should check the browser console.

Kintu

ContCentric

Regards,
Kintu

Hi Kintu,

I guess u have logged in as admin@app.activiti.com user, Please check by logging in as any user.

Regards

Anita Patil