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

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 Leaders.
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.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events