Stand with Ukraine 🇺🇦
Products
Services
Blog
About Us

List Pages in a Space — Confluence Cloud Macro

Video preview (WebM) is currently unavailable

List Pages in a Space - Displays a list of pages in a specific space with a specified title or label - Preview 2
List Pages in a Space - Displays a list of pages in a specific space with a specified title or label - Preview 3
adminconfluence-contentformatting

This macro, "List of pages in space", retrieves and displays all pages within a given Confluence space in a sortable and filterable table. It uses the Confluence REST API to fetch the spaceId based on a provided space key, then queries all pages under that space. Each page is displayed with its title (linked to the page), last updated date, author (with profile link), and labels (linked to Confluence search by label). The table is styled using Atlassian AUI classes for a clean and consistent Confluence appearance. A filter input box above the table allows users to dynamically search pages by title, author, or labels, hiding rows that don’t match the search query. The filter logic is implemented in vanilla JavaScript for lightweight performance. Author information is conditionally styled: if the current user is the page creator, their name is highlighted with an in-progress lozenge, otherwise a subtle lozenge is used. Labels are fetched via an additional API call per page and displayed as clickable lozenges linking to label-based search. This macro improves space navigation by giving users a quick overview of all content, allowing efficient filtering without leaving the page. It is ideal for project documentation spaces, knowledge bases, and team wikis where content grows rapidly and structured discovery is essential

Try for free