Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Link to same page (name) in different space

Lukas Pohanka
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 2, 2018

Hi, i have different versions of a functional documentation in different spaces. To make it simple i have 

  • Version 1
  • Version 2

Every functionality that gets build into version 1 needs to be documented in version 2 as well, and the name of the document will stay the same. So we have:

  • Version 1
    • Document A
  • Version 2
    • Document A

I would now like to add a link to the page (or header) where a user can easily switch between the versions. As Version 2 is a copy of Version 1 the name of the page is identical, the only difference is the space key V1 vs. V2. 

I would need to know how i can exchange the pagetitle in this [spacekey:pagetitle] with [version1:$self], [version2:$self] so that i don't need to manually create the links for each document. Is there a variable $pagename?

 

1 answer

1 accepted

0 votes
Answer accepted
Bill Bailey
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 2, 2018

There is a method .getTitle(). So this should work:

$content.getTitle()

If you are on a pre 6.x version, there is this macro designed to do exactly what you want to do:

https://confluence.atlassian.com/conf59/space-jump-macro-792499201.html

Not clear why the deleted it.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events