Rally Software

  • 1.  Fetch all stories using start index and Pagesize

    Posted Jul 24, 2018 08:13 PM

    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?



  • 2.  Re: Fetch all stories using start index and Pagesize
    Best Answer

    Posted Jul 24, 2018 09:31 PM

    Please Ignore. It is working as expected.

    The query parameters are getting ignore at program level and default values are of pagesize and start are fetched. So that it returns 2000



  • 3.  Re: Fetch all stories using start index and Pagesize

    Posted Jul 25, 2018 03:27 AM

    Sarada,

     

    OK, I marked your post to ignore this as the correct answer.

     

    Michael