Remove existing Confluence "mentioned in" links in Jira

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

Currently, Jira does not have a way to disable Confluence mentioned in issue links selectively. The two permanent options available are:

Several Jira Administrators have requested more granular remote issue link controls on JRASERVER-64952 - Create way to bulk-remove links of a specific link-type

This guide describes how to remove existing Confluence mentioned in issue links. This approach also applies to other applications supporting remote issue links, such as GitLab.

Environment

Jira 5.0 or later.

Confluence or another application that supports remote issue links.

Solution

1. Search for issue links

From your database, run the following statement to query the number of remote issue links to be deleted:

1 SELECT COUNT(*) FROM remotelink WHERE relationship = 'mentioned in' AND url LIKE '<confluence-base-url>/%';

ℹ️ Replace <confluence-base-url> with the base URL of the linked application (for example, LIKE 'https://confluence.atlassian.com/%';). Be sure to leave the trailing slash and percent sign wildcard.

ℹ️ Confluence uses mentioned in as the relationship name. However, other applications may use different names – such as mentioned on in the case of GitLab. The remote application, not Jira, decides the relationship name.

💡 To get more details on the remote issue links, replace COUNT(*) with *.

2. Delete issue links

Always back up your data before making any database modifications. If possible, test any alter, insert, update, or delete SQL commands on a staging server first.

After verifying the changes, use this DELETE statement to delete the remote issue links. Substitute the relationship and URL to match the previous SELECT query.

1 DELETE FROM remotelink WHERE relationship = 'mentioned in' AND url LIKE '<confluence-base-url>/%';
Updated on April 11, 2025

Still need help?

The Atlassian Community is here for you.