I'm trying to link our Confluence and JIRA servers together so that we can refer between them. My setup is as follows,
I have added the Application Links in each to point to the other. For both Incoming and Outgoing Authentication in each I enabled Trusted Applications and OAuth.
My account on both has the same username and password and I have full Admin rights on both.
So far, when testing, I can create a link in JIRA that links to a page in Confluence no problem.
But when I attempt to use the JIRA Issue macro in Confluence, it never allows me to create a link. I've tried typing in an issue key for an issue which I created in JIRA and I've also tried creating a new issue.
When I enter the issue key, TST-4, I get the error message saying "The JIRA server didn't understand your search query". If I try to create a new issue, the list of Projects and Issue Types are not populated and the Insert button just ignores my presses.
I suspect its a permissions issue but considering that I have the maximum rights possible on both servers, I can't figure out what is missing??
With the help of the support team, it turned out to be two problems.
1) The time between the JIRA and Confluence servers was not synchronised. No idea why, but there was a 2 hour time difference between the two servers so I set up ntpd to take care of that.
2) Links were missing in the authentication configuration. The Confluence page doesn't say it, but the JIRA page (https://confluence.atlassian.com/display/JIRA044/Configuring+Trusted+Applications+Authentication+for+an+Application+Link) describes what is needed.
Since its not entirely clear which URLs are required and where, I added all of the following to both ingoing and outgoing authentication on both Confluence and JIRA which fixed my problem,
/rest /plugins/servlet/applinks/whoami /rpc/xmlrpc /plugins/servlet/streams /rpc/soap /sr/jira.issueviews:searchrequest /secure/RunPortlet
UPDATE:
The support desk have added a feature request (https://ecosystem.atlassian.net/browse/APL-1187) for the JIRA and Confluence to auto-configure themselves with each other to reduce the problems in the future.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There is a security vulnerabiluty recently patched in JIRA (>6.1.3) that confluence needs in order to use trusted apps.
Versions 5.3.4, 5.4 and 5.4.1 are not vulnerable but require patches for compatibility purposes in order to be able to connect to patched or upgraded versions of JIRA and other Atlassian products. You do not need to patch these versions if you are not using Application Links with Trusted Applications authentication configured.
https://confluence.atlassian.com/display/DOC/Confluence+Security+Advisory+2014-02-26
I would try applying the patch to Confluence so JIRA will trust it again.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What if you add "/rpc/xmlrpc"
in the URL patterns as explained in
https://answers.atlassian.com/questions/125007/issue-links-wiki-page-you-do-not-have-permission-to-view-this-page
(the documentation missing some points).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the tip but it didn't work :-(
Further investigation has shown that when doing a search for the issue, I get a '400 - Bad Request' response with a description 'The request sent by the client was syntactically incorrect (Bad Request).'
In the actual headers the X-AppPath is,
/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?jqlQuery=key%20%3D%20CMS-3&returnMax=true&tempMax=20&field=summary&field=type&field=link
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Richard,
I suggest that you create a support request ticket in our support site and provide us with the Support Zips for both JIRA and Confluence in a sense that we can assist you better.
Cheers,
Andy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.