Use python SDK to list all pages in a given hierarchy

Michael OConnor June 5, 2024

I need to label several hundred pages but can't seem to first find a way to identify the sub-set of pages in the space I'm interested in. Ideally I'd like to search a given hierarchy by URL using something like:

confluence.get_all_pages_from_space()

but specify only the sub-folder I'm interested in and returning all child pages.

Searching the entire space doesn't work for me due to limits on the small number of pages returned in any one call. 

Thanks! 

1 answer

0 votes
Jim Knepley - ReleaseTEAM
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
June 24, 2024

Take a little care with pagination, but get_all_pages_from_space() includes a start= and limit= parameters which you can step through the full list.

As you page alone, you can add matching issues to a comprehensive list of desired.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events