-
Bug
-
Resolution: Unresolved
-
Low (View bug fix roadmap)
-
None
-
7.13.3, 8.5.1
-
7.13
-
9
-
Severity 3 - Minor
-
1
-
Issue Summary
When a Remote link is created with the REST API and an application type "com.atlassian.jira" is supplied and the relationship is "relates to", then the Remote Link will not display on the issue page. We just get a spinner and "Failed to load"
This also happens when a link between a Jira Cloud and Jira Server instance is created via the UI. The link displays correctly in Jira Cloud but appears broken in Jira Server.
Steps to Reproduce
- Create an input file with this JSON:
{ "application": { "type": "com.atlassian.jira", "name": "ACI SCRUM-8" }, "relationship": "relates to", "object": { "url": "http://jira_remote:8087/browse/SCRUM-8", "title": "SCRUM-8" } }
- Create the remote link using the REST API
curl -H "X-ExperimentalApi: opt-in" -H "Content-Type: application/json" -u charlie:'charlie' -X POST "http://jira_local:8085/rest/api/2/issue/AL-13/remotelink" -d @input.json
- The response confirms the remote link as created:
{"id":10003,"self":"http://jira_local:8085/rest/api/2/issue/AL-13/remotelink/10003"}
Expected Results
The remote link is rendered on the UI issue page on the local Jira
Actual Results
The below exception is thrown in the atlassian-jira.log file:
2020-06-16 06:21:35,047 https-jsse-nio-8443-exec-25 DEBUG jianue 381x73643x4 1lwew7u 10.5.232.251 /rest/viewIssue/1/remoteIssueLink/render/36202 [c.a.j.p.v.issuelink.rest.RemoteIssueLinkResource] Successfully retrieved the remote issue link '36202' 2020-06-16 06:21:35,047 https-jsse-nio-8443-exec-25 ERROR jianue 381x73643x4 1lwew7u 10.5.232.251 /rest/viewIssue/1/remoteIssueLink/render/36202 [c.a.j.p.v.issuelink.rest.RemoteIssueLinkResource] Error occurred while generating final HTML for remote issue link: java.lang.NullPointerException
No http request is sent to the remote Jira to fetch anything either.
Workaround
Unless the application type is specifically needed, the "type: com.atlassian.jira" line can simply be removed the JSON used to create the link and it will render just fine.
- mentioned in
-
Page Failed to load
Any case for the cloud instance?
If I remove this in scripts for Jira cloud <> cloud - it just add as weblink