It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Display list of pages and their current versions

Dan Miller Oct 09, 2016

Hi there,

I'm wondering if anybody could please help me with the following...

I am using Confluence Cloud. I would like to create a confluence page, think of it like an index or contents page, that lists a number of other pages contained within the space along with the current version and change log for each page listed.

For example...

Welcome to my Index/Contents page

Page NameCurrent VersionChange Comment
Example page 1v. 1Initial version
Some other pagev.3Made a few changes
Yet another pagev. 2Minor spelling fix


I would like the Current Version and Change Comment values to be referenced from the actual pages themselves. That way they would always stay current/up-to-date automatically and wouldn't require me to update them manually.

Does anyone know if this is possible?

Thanks in advance for your time considering this question.


1 answer

1 accepted

1 vote
Answer accepted
Franz Limbacher Oct 10, 2016

Hi Dan,

Of course its possible!

You have two possabilites:

  • You can write an User Macro or
  • you can write a Plugin with an Macro Modul

Either ways, the functionality is pretty the same.

Via the contentAcessor you get the pageManager.
Via pageManager you get the Page by name (for example a parameter)
You can also use getPages or getPagesStartingWith 
For each page you can get the children of a page.

For a User Macro it could look like this (I didn't test it):

## Set the Parameters 
# (...)

## Specify the page, this macro is based on


## Specify the parameters for that page

## (...)

## Get PageManager object instance
## Get the Pages

## Render the page with the parameters above
    <th>Page Name</th>
    <th>Current Version</th> 
    <th>Change Comment</th>
#foreach($page in $pages)


For Documentation of the classes and functions read this:

If you need help for writing User Macros:

If you need help for writing Plugin Macros:

I hope this helps you.

Kind Regards Franz

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Confluence

6 Awesome Ways to Apply Trello, JIRA and Confluence to your Project

I attended  Atlassian Summit 2019  and learned a lot from the presenters, attendees and knowledgeable Atlassian product managers. The presentations I attended focused on applying Agile, pla...

853 views 6 16
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you