Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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.

 

   {trigger:pageapproved|approval=ApprovalName}

        {set-metadata:approvedversion}@version@{set-metadata}

        {publish-page}   

    {trigger}


 

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

   {pageheader:visibility=all}

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

    {pageheader}

 

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}

    {description}

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

    {description}

    {state:invisible|final=true}

    {state}

    {pageheader:visibility=all}

        Version: {get-metadata:approvedversion}
       

        {pageactivity}

 

Hope this helps.

Cheers,

Goriana

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase

The benefits of using Jira in different departments

Jira is a great tool to use across different departments. Forget that paperwork – switch to Jira and get that tasks done smoothly. Marketing Jira allows for a complete digital transformation of you...

97 views 0 5
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