Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

We use Confluence for documenting business specific processes.

Say today (March 11th) I edit a page in Confluence and the new page is version 2. I need to store a link to that page in a report for auditing purposes. I know how to get a link (Tools/Link to this Page...) and the saved link looks like this "http://wiki/display/OneSource/EEPROM". All seems well and good.

Now next month I need to update the page so I create version 3.

When I return to the March report and select the link I saved, version 3 loads, not version 2 as I expected.

Not to worry as I see that I can get a different link to store in my report. From the history page I get this link to the current page (http://wiki/pages/viewpage.action?pageId=21364790). However, it yields the same result. After editing the page to create version 3, my saved link now points to the version 3 and not to version 2 as expected.

How do I get a link to version 2 for my report that will always point to version 2 when version 2 is also the current version?

TIA,

Michael

share|improve this question

migrated from stackoverflow.com Mar 11 '11 at 21:19

This question came from our site for professional and enthusiast programmers.

add comment

2 Answers

up vote 2 down vote accepted

AFAIK, you can't without a custom plugin to handle links with versions. Confluence will always use the pageId of the original page as the latest version and insert a new pageId for historical versions as they are created. For example, your current page has pageId 21364790 and version 2; editing the page creates a new pageId 21364791 as a copy of the previous version, and updates 21364790 with your changes. This means that there is no way to predict what the pageId of a historical version will be when it is currently the latest version.

I see two solutions. The more elegant solution is to make a plugin providing a copy of the XWork viewpage action, and giving it a version parameter. You could then access the correct version using a URL like http://wiki/pages/myviewpage.action?pageId=21364790&version=2. The ugly hack solution is to double-up your edits, so you can be sure of what the correct historical pageId will be.

share|improve this answer
    
Thanks, that is pretty much whar we thought. We are exploring the plugin option. –  Michael J Mar 16 '11 at 17:22
add comment

Page version link plugin

enter image description here

This plugin adds to a header of every page the link, referring to the displayed version of the page regardless of any future content updates.

Is it what you need?

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.