Stash + JIRA On demand = disaster

I cant seem to have these two work together. When i click the tab "Source" an a JIRA item i get

"Server Stash requires authentication. Login and approve to view source."

and when i click there i get:

"Authentication failed! An error occurred while trying to obtain an access token. For application link "Stash (2f2233a8-5c4d-3a9c-a008-29050b2bc2fb) com.atlassian.applinks.application.stash.StashApplicationTypeImpl@b36308"

I set up all the app links. This is really bad.

2 answers

0 votes

I'd guess you set up the app links incorrectly. If you check all of them really carefully and can't find anything wrong, then the next step is to read the logs - as it's OnDemand, you'll need to contact support (who will be able to tell you what you've got wrong, or fix the config on their side, or confirm the existence of a bug)

The links in jira are ok-i checked multiple times. Do i also need to setup links in stash for this to work? I have already contcted support but no reply yet. I can go from stash to jira by clicking on the issue but i cant see any code in jira .. Btw im using a reverse proxy on stash to be able to access it from port 80

Hi Ricardo,

Yes - you will need to create an application link (with OAuth authentication enabled) from Stash to JIRA as well.

To create the link in both directions, it may be simplest to delete the existing application link from JIRA to Stash and create a new one, making sure to check the Also create a link from '<name of your JIRA server>' back to this server checkbox on the second page of the wizard. Finally (on the third page of the wizard) make sure you specify that you have separate userbases. This will ensure that OAuth authentication is set up between the two servers.

Provided you have your proxy correctly configured it should pose no problem to integration. See for more details.

Our troubleshooting guide may also be of assistance:

That said, I'm sure our support engineers have been in touch already and sorted this out :) but this may help future readers.



I tried everything to only receive a message from atlassian support saying stash does not work with jira on-demand. github enterprise, here i go!

Hi Ricardo,

I'll follow up with support to work this out. Can you point me at the support request for this? Although we haven't announced official support for Stash in OnDemand yet, it should be working already.

Feel free to forward me the details directly to jens at


Suggest an answer

Log in or Sign up to answer
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

1,294 views 5 10
Read article

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