Page Pagination — Confluence Cloud Macro
Loops through API requests to collect all pages in a space and lists their titles.
Template
#set($allPagesInSpace=[])
#set($link="/wiki/api/v2/spaces/$space.id/pages?limit=250")
#foreach($n in [1..1000]) ## Range can be set to bigger number if needed
#set($pages=$ConfluenceManager.get($link))
#set($noPrint=$allPagesInSpace.addAll($pages.results))
#if($pages._links.next)
#set($link=$pages._links.next)
#else
#break
#end
#end
#foreach ( $page in $allPagesInSpace )
<li>$page.title</li>
#end You May Also Like
Shows page creation date
Space Information macro by space Id
Display page edit and view restrictions in Confluence to get essential permission details, including users, groups, and inherited access.
Find image within page attachments. Handy for reuse files and update them all at once
Macro for generating ID in base32 format
The content of this macro will be printed and exported but not rendered on the page in view mode
Display a list of Confluence pages with CSV download feature
Displays a list of pages in specific space with certain title or label
Show an expandable page tree for a selected parent page (defaults to the current page)
Read and display the fixed version of Confluence pages by checking page or ancestor labels