Update Cloud Confluence links to Jira after Jira migration

Evgeniy Makarov October 29, 2024

Hello!

We have Cloud Confluence instance and On-Premise Jira Software. We are about to migrate Jira Software to Jira Cloud.

The problem is that in Confluence we have many links to Jira issues just pasted as text or simple links. I know that there is Product Links feature that allow us to update Jira links within Jira Cloud after migration, but in doesn't update non-migrated Cloud Confluence instance.

Is there a way to update all, lets say, https://jira.on-prem.com links to https://jira.cloud.links ?

Thank you

1 answer

1 accepted

0 votes
Answer accepted
Andrii Maliuta
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 31, 2024

Hello @Evgeniy Makarov ,

You can try to use 3-rd party solutions like ScriptRUnner (https://marketplace.atlassian.com/apps/1215215/scriptrunner-for-confluence?hosting=cloud&tab=overview) or Confluence CLI (https://marketplace.atlassian.com/apps/284/confluence-command-line-interface-cli?hosting=cloud&tab=overview) that already provide scripting capabilities to change links as page bodies parts.

Also, you can use REST API https://developer.atlassian.com/cloud/confluence/rest/ to

  1. Get necessary pages by CQL or content/space endpoints
  2. Get each page body
  3. replace links
  4. Save page body after changes
Evgeniy Makarov November 20, 2024

Thanks for the answer. I've ended up using Add-on named Space Content Manager to make simple find&replace procedure.

 

Like Andrii Maliuta likes this
Stavros_Rougas_EasyApps
Atlassian Partner
November 20, 2024

@Evgeniy Makarov I'm a co-founder of Easy Apps, we make Space Content Manager.

You have likely already realized that you need to use the 'Link manager' tab and not 'Find and replace' to edit links.

The technical reason is find and replace only changes the URL text, not the underlying URL.

Example:

Take http://www.adidas.com. If use find and replace to change ‘adidas’ to ‘nike’ the hyperlink displays as http://www.nike.com. But click or hover over on the URL and you will see that it still directs the users to adidas.com.

This is a limitation of Confluence. As users ourselves we know it is confusing.

link manager.png

Like # people like this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events