When we are trying to link a confluence page to a jira issue, we are using search feature from JIRA - add link. The search does not return any results and we got the following error in the Jira applog;
2015-10-03 11:02:35,698 http-bio-8081-exec-15 ERROR jirauser 662x3893x1 44uoyo 192.168.1.99,127.0.0.1 /rest/viewIssue/1/remoteIssueLink/render/10000 [viewissue.issuelink.rest.RemoteIssueLinkResource] Error occurred while generating final HTML for remote issue link: java.lang.RuntimeException: java.io.IOException: Failed to load Confluence Page from remote server Caused by: java.io.IOException: Failed to load Confluence Page from remote server Caused by: com.atlassian.sal.api.net.ResponseException: Status Code: 200, Status Text: OK, Errors: {}, Error Messages: [java.lang.Exception: com.atlassian.confluence.rpc.RemoteException: You're not allowed to view that page, or it does not exist.]