Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
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 page version from draft space to published space

Hey Community!

I am using a user macro to display the confluence version number which is working great.

## @noparams
Issue #$content.version

But I would also like to display the version number of the same page from a difference space. I am using Comala publishing to publish from a draft space to an approved space.

In the draft space I would like to display the approved version page number followed by the draft version page number.

In the draft space it would look like this:

  • Version: 4.11 OR;
  • Approved version: 4 | Draft revision: 11

In the approved space it would look like this:

  • Version: 4


Is this possible? Thank you :)

1 answer

Hi Ally,

You can do that by using Comala Workflows and Comala Publishing.

In the draft space, you need to save the approved version using set-metadata macro where "@version@" is a value reference to the content version.







You can display the draft version and the approved version in pageheader macro using get-metadata macro:


               Approved version:{get-metadata:approvedversion}| Draft revision:{get-metadata:version}



To copy the draft approvedversion metadata to the published space, you need to check "Page Properties" checkbox in Publishing Options screen in Space Tools/Publishing Configuration.

Lastly, to show pageheader in the Published space, you need to add the following workflow:

{workflow:name=Published Space Header|hideStates=true}


        This is the workflow for the published space to show metadata from the draft space





        Version: {get-metadata:approvedversion}



Hope this helps.



Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Apps & Integrations

Partner Webinar Opportunities: January 2022

Hi everyone 👋, I really like the format of the webinar opportunities summary that @Jimmy Seddon posts monthly on the Welcome Centre group. It's a great place to go to check that you didn...

124 views 3 11
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