Unable to link Confluence 5.4.1 to JIRA 6.1.5

I'm trying to link our Confluence and JIRA servers together so that we can refer between them. My setup is as follows,

  • JIRA 6.1.5 on one server
  • Confluence 5.4.1 on another separate server
  • Users are internal to each application i.e. no LDAP, Crowd, or use of JIRA User Server for Confluence

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??

4 answers

1 accepted

This widget could not be displayed.

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.

Thanks, this fixed the problem for me!

This widget could not be displayed.
Andy Nguyen Atlassian Team Jan 23, 2014

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

This widget could not be displayed.

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).

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

This widget could not be displayed.

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.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

137 views 2 0
Join discussion

Atlassian User Groups

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!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you