-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Low
-
Component/s: Page - Content APIs
-
None
-
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
- 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 - If there are more than 250 pages the call will return a next page link
- 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.