Page Pagination — Confluence Cloud Macro
Loops through API requests to collect all pages in a space and lists their titles.
User Parameters
This macro comes without configurable user parameters.
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 Recommended Macros
Display page edit and view restrictions in Confluence to get essential permission details, including users, groups, and inherited access.
Space Information macro by space Id
Shows page creation date
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
User macro for displaying issues using custom JQL filter
Perform customized searches based on labels, content types, and other parameters.
An overview of all pages within one space which contains the title, the version, and the last updated date