Jira Service Management shows 500 error on Help center / customer portal
Platform Notice: Cloud - This article applies to Atlassian products on the cloud platform.
Summary
When you try to load the help center or portal of any Jira Service Management project, a 500 error is shown:
Diagnosis
The support team can see the following error message in the logs at their end:
There are application links of type interface com.atlassian.applinks.api.application.confluence.ConfluenceApplicationType configured, but none are marked as primary
You can confirm if you are hitting this issue by going to your Jira application and navigating to Products > Application links. If you have added a link to any Confluence application, it could be on the same Cloud site or any other Confluence site, and if the application is not marked as "Primary" then you are hitting this issue.
Cause
The error suggests that there is a Confluence application linked to this Cloud site but it is not marked as a primary app link.
Solution
You can follow the below procedure to mark the confluence application as primary.
- On your cloud site go to the Jira application and navigate to Products > Application links
- Find out the application id of the confluence application linked to your Jira site that is not marked as primary from this page. You can find the application link id in the URL when you try to edit any application link
You need to send the following POST action using a CURL command OR any REST API client like Postman:
Method: POST Endpoint: https://<CloudSiteURL>.atlassian.net/rest/applinks/3.0/applicationlink/primary/<ApplicationIdOfConflunceApp> Referrer: https://<CloudSiteURL>.atlassian.net/plugins/servlet/applinks/listApplicationLinks Authorization: Basic <base64of Email:APItoken>
You will receive a 200 response with a message saying that "Application with id '<ApplicationIdOfConflunceApp' is now the primary application of its type"
Feel free to reach out to Atlassian support in case you face any issues performing these steps by raising a ticket here.