No data is shown when clicking the Confluence page header to list linked Jira issues
Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.
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
When checking all Jira links attached to a Confluence Page from the page header, loading icon rolls and never get any items to show in the panel.
Environment
7.13.1
Diagnosis
The following error can be observed in atlassian-confluence.log:
WARN [JIRAMetadataPlugin:thread-7] [metadata.jira.helper.JiraMetadataErrorHelper] printError Application link 'Jira Application Link' appears to be misconfigured
-- referer: confluence-page-url | url: /confluence/rest/jira-metadata/1.0/metadata | traceId: bbff07471a3a8a53 | userName: user
com.atlassian.sal.api.net.ResponseStatusException: Unexpected response received. Status code: 401
at com.atlassian.applinks.core.auth.ApplicationLinksStringReturningResponseHandler.handle(ApplicationLinksStringReturningResponseHandler.java:16)
at com.atlassian.applinks.core.auth.ApplicationLinksStringReturningResponseHandler.handle(ApplicationLinksStringReturningResponseHandler.java:13)
at com.atlassian.applinks.oauth.auth.OAuthApplinksReturningResponseHandler.handle(OAuthApplinksReturningResponseHandler.java:50)
Cause
If you are observing the same issue from the UI and seeing similar errors in your application logs it means that your Jira Metadata Plugin has some corrupted data, and it cannot get a valid one from the application.
Solution
Since the release of Confluence 7.0, it is no longer possible to enable or disable individual modules of the bundled system apps through the Universal Plugin Manager. If you are running Confluence 7.* you can disable modules via UPM API by following Cannot enable or disable bundled system apps or modules
UPM API Option:
Use the Universal Plugin Manager API to either enable or disable it.
- Clear the plugins cache by following the steps in How to clear confluence plugins cache KB.
- Enable/disable the Jira Metadata Plugin by running the following commands.
Run curl command to disable it:
curl --user "<USER>:<PASSWORD>" --location --request PUT '<baseURL>/rest/plugins/1.0/com.atlassian.confluence.plugins.confluence-jira-metadata-key' \ --header 'Content-Type: application/vnd.atl.plugins.plugin+json' \ --data-raw '{"enabled": false}'
Run curl command to enable it:
curl --user "<USER>:<PASSWORD>" --location --request PUT '<baseURL>/rest/plugins/1.0/com.atlassian.confluence.plugins.confluence-jira-metadata-key' \ --header 'Content-Type: application/vnd.atl.plugins.plugin+json' \ --data-raw '{"enabled": true}'