Is there a way to update links easily?

Sanet Minnie August 10, 2017

Scenario:

We have a product space that links to other product spaces. For each new release, the links must be updated to point to a new version. For example:

There are 1200 links in one space pointing to this space:
https://company/display/SPACE88/pagex

When a new version is released, we need to update those links to:

https://company/display/SPACE89/pagex

---

I am not referring to intra-space links, as they update automatically when we copy a space, I have a problem with inter-space links.

I want a solution that does not require access on server side or in the database.

I know we can use excerpts or includes.

Does anyone know if the Easy Space Variables plugin would work for this?
https://marketplace.atlassian.com/plugins/eps.focuspro.variables/server/overview

2 answers

3 votes
Stephen Deutsch
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.
August 11, 2017

One option would be to do a search and replace on the links. Here is a user macro for space-wide search and replace on the Confluence Storage Format:

https://streamline.atlassian.net/wiki/spaces/STRMLN/pages/5144578/Search+and+Replace+User+Macro

so you could search for https://company/display/SPACE88/ and replace with https://company/display/SPACE89/, but make sure you preview the changes first to make sure that you're not changing anything accidentally that you don't want to.

Bernabe Theodore Costales III
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 30, 2017

This is a good answer if you're looking to make your changes with a minimum amount of additional plugin management, @Sanet Minnie. Let us know if this works out for you! If you'd rather a more in-depth answer with some addons available from the Atlassian Marketplace, the this answer provided may help as well.

2 votes
Robert Reiner _smartics_
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.
August 13, 2017

The commercial projectdoc Toolbox can do this with the free Information Systems Extension, specifically the System Link Macro.

Links to external servers will use a space property at render time. Therefore all links to this external systems can be changed by changing the value of this one property. With the autoconvert feature, links that point to a configured external resource will automatically be converted to the macro (making it easier to add new links).

EDIT: The autoconvert of a link to the macro that checks for the space property will (currently) only work if the page can be accessed with anonymous privileges (see below). Otherwise you would need to set the label in the macro manually which I would assume to be too cumbersome to do. My solution also does not solve the problem of the current links to be converted to the 'macro form' (so you would also need a one-time replacement process like Stephen mentioned in his answer). 

There are also more features like transclusion or links to certain servers (see Domain References). The current version does not allow to link to a restricted resource and automatically authenticate.

Here is more information related to this topic:

Please note that I am one of the authors of the projectdoc Toolbox and the extensions. So my answer may be biased ...

You can check if these add-ons meet your use cases: The projectdoc Toolbox is available on the Atlassian Marketplace for Confluence Server. The Information Systems Extension (also available on the Atlassian Marketplace) is available for free, but needs services from the commercial projectdoc Toolbox.

Bernabe Theodore Costales III
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 30, 2017

This is a good answer too that has some more expanded information and strategies for if you're attempting a larger scale migration of links and information! Big ups for the information.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events