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
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.
What if you add "
in the URL patterns as explained in
(the documentation missing some points).
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,
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.
I would try applying the patch to Confluence so JIRA will trust it again.
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG