Why task list api response is giving only 10 records?

cancel
Showing results for 
Search instead for 
Did you mean: 
anitapatil_bld
Active Member II

Why task list api response is giving only 10 records?

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
kintu_barot
Senior Member

Re: Why task list api response is giving only 10 records?

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

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

Thanks

Kintu

ContCentric

Regards,
Kintu
anitapatil_bld
Active Member II

Re: Why task list api response is giving only 10 records?

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.

kintu_barot
Senior Member

Re: Why task list api response is giving only 10 records?

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
anitapatil_bld
Active Member II

Re: Why task list api response is giving only 10 records?

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