API cursor returns unexpected response using the API call to list direct children

XMLWordPrintable

    • 1
    • Severity 3 - Minor

      Issue Summary

      API cursor returns unexpected response using the API call to list direct children when the child position is null.

      Steps to Reproduce

      1. Run the below API call 
        <siteURL>wiki/pages/{id}/direct-children?limit=250
        Doc: https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-children/#api-pages-id-direct-children-get 
      2. If there are more than 250 pages the call will return a next page link 
      3. Create a next page URL using that link and run it.

      Expected Results

      The Next pagination cursor URL returned should list the next set of 250 pages by using other methods like sortid or title.

      Actual Results

       

      No pages are returned using the next URL instead shows below result

       

      {  "results": [],  "_links": {  "base": "https://<site URL>/wiki"  } }

       

      Workaround

      Make use of Sortid in the call itself to list the direct children

      for ex:

      <site URL>/wiki/api/v2/pages/<parentpageid>/direct-children?sort=id&limit=250

      The Next Page URL returned with this call will show the next results.

              Assignee:
              Unassigned
              Reporter:
              Dollyk
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: