Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the number of child pages a page has

Joshua Camp
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 22, 2019

I'm using the confluence_python_api and I can't seem to retrieve the number of children a page has. I have tried using confluence.cql("Parent = <parentID>") and then taking the length of that answer (number of elements in the json returned) but that only gives the number of elements over 500. If the number of children is below 500, it will give the correct number.

 

I've tried setting the start index and the limit, and I've tried doing two calls with start=0 limit=500 then start=500 and limit=1000 but it only returns those over 500 in the first call, then 0 on the second call.

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events