The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Links with the space parameter as a placeholder

Maria Asnes
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!
February 17, 2019

As part of our documentation flow, we have 3 working spaces (User, Technical, Logic) and we would like to publish them (using Scroll Versions) to 1 public space.

The documentation is for a versioned product, so we have a situation where for each release we have a new public space.

We would like to have links between User, Tech and Logical documentation. Is there a possibility when creating a link to indicate instead of the spacekey, a spacekey variable that would tell: in the current space find page X.

E.g. https://wiki.cloud.clicksoftware.com/display/<spacekey placeholder = current space>/

Thanks

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

2 votes
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 Champions.
February 17, 2019

The only way I can think of doing this with a user macro for your links that detects what space it is when forming the link. This solution would assume you have four different space names so that it would create a cross-space link when it sees User, Technical, and Logic, and then a local link when it sees it is in the destination space.

Fortunately, user macro support the parameter type you need:

## @param page:title=Page|type=confluence-content|required=true|desc=Select a page do use

Bonus Points

If you package this user macro as a plugin, you can add it to the insert menu to make  it easier for user to enter.

TAGS
AUG Leaders

Atlassian Community Events