AnsweredAssumed Answered

Fetch all stories using start index and Pagesize

Question asked by sarada.chelluboyena on Jul 25, 2018
Latest reply on Jul 25, 2018 by Michael Bulkeley

I have totalresultcount of 3450. My first Api fetched 2000 rows. second API instead of getting remaining 1450 rows it fetches 2000 rows. Can someone explain how to get all 3450 rows based on pagesize and start index. I assume I am missing something

My first API:contains start=1 and pagesize =2000

 

https://<<hostname>>/slm/webservice/v2.0/hierarchicalrequirement?query=((FlowStateChangedDate
> =2017-6-01) AND (FlowStateChangedDate <= 2017-7-24))&fetch=FormattedID,FlowStateChangedDate,ScheduleState&start=1&pagesize=2000

Second API: contains start=2001 and pagesize =2000

https://<<hostname>>/slm/webservice/v2.0/hierarchicalrequirement?query=((FlowStateChangedDate
> = 2017-6-01) AND (FlowStateChangedDate <= 2017-7-24))&fetch=FormattedID,FlowStateChangedDate,ScheduleState&start=2001&pagesize=2000

 

Why am I getting 2000 when there are only 1450 while fetching second API?

Outcomes