Configure Application Links Confluence to Jira
Asked by Alex O:

Jira 7.5.1 / Confluence 5.8.16

After adding the application link from the confluence to Jira, I see in Jira that outgoing and incoming connection status is connected. Using OAuth.

In confluence, under the app links I see Incoming Authentication as Configured under OAuth tab, but outgoing is not. Perhaps as a result when I try to insert Jira issue/filter from on the confluence page I get prompted to login \& approve to retrieve data from Web Issue Management. If I try to log in it shows these errors

**Authentication failed!**

An error occurred while trying to obtain an access token  
Failed to get token from service provider. Response status code is '403'  

Jira instance is running over HTTPS and can communicate with Confluence server. Confluence runs over HTTP and also can talk to Jira. User base on Jira is using local users while Confluence is using LDAP.  

Here is another error I get

### Cause {#toc-hId-1088017154}

java.lang.NullPointerException  
at Com.atlassian.oauth.serviceprovider.internal.servlet.user.AccessTokensServlet.parseUriFromDescription(AccessTokensServlet.java:217)

What is the best way to get rid of these errors and make Confluence and Jira talk to each other?  
Thank you


Answers:
author: Rafael Pinto Sperafico
body: Hi [@Alex O](/t5/user/viewprofilepage/user-id/3546336) ,

The existent application link is not configured correctly, therefore, you could delete the application link from Confluence and Jira, then recreate the application link between the two application using OAuth *only*.

Please, refer to [Application Links Troubleshooting Guide](https://confluence.atlassian.com/kb/application-links-troubleshooting-guide-718668765.html "Application Links Troubleshooting Guide") for further information.

If you continue on experiencing issues after recreating application link, you should consider upgrading Confluence, so the Application Link version is compatible with the Jira version you are running. More information on [Application links version matrix](https://confluence.atlassian.com/applinks/application-links-version-matrix-779174762.html "Application links version matrix").

Kind regards,  
Rafael

comments: author: Alex O
body: That's exactly what I did several times, but still no luck. ![Jira-app-links.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/65154iB3966D3536E7FBB6/image-size/large?v=v2&px=999 "Jira-app-links.PNG")![Jira-app-links2.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/65155i1980483169F04EA6/image-size/large?v=v2&px=999 "Jira-app-links2.PNG")![Conf-app-links.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/65156i4A6F567751363BF1/image-size/large?v=v2&px=999 "Conf-app-links.PNG")

![Conf-app-links2.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/65157i1072ADD7CFCE6A70/image-size/large?v=v2&px=999 "Conf-app-links2.PNG")Do I need to configure the outgoing auth in confluence? IF yes, how exactly


author: Alex O
body: There is also a warning on the Confluence side

Application 'Web Issue Management' seems to be offline. Click here to Relocate.

Nothing happens if I click the Relocate button. Both Jira and confluence are online and can talk to each other via ping, curl etc


author: Rafael Pinto Sperafico
body: Hi [@Alex O](/t5/user/viewprofilepage/user-id/3546336) ,

Ping is not a valid communication testing in this case, there is much more involved when creating application link.

When creating the application link, what is there any error thrown in the application logs?

Since you are running Confluence v5.8.x, the application link version 4 is not compatible with version 5 used by Jira v7.5.1, therefore, you should consider upgrading Confluence to a version where the application link version is 5.

Kind regards,  
Rafael


author: Alex O
body: Thank you [@Rafael Pinto Sperafico](/t5/user/viewprofilepage/user-id/2904254) for your help.


Tags: application-link

atlassian-support

jira