Can multiple Stash instances integrate with a single JIRA instance?


I understand from the documentation that a single Stash instance can only connect to one JIRA instance. My question is, can a single JIRA instance support integrations from/with multiple Stash instances?

This is not a failover issue, but rather an architecture issue - I would like to run multiple Stash servers in parallel, supporting different user bases/repositories/etc. on the different servers, but all sharing a single common JIRA instance.



2 answers

1 accepted

2 votes
Accepted answer

Hi Austin,

Technically yes, you can support multiple Stash servers with a single JIRA instance.

The only thing I would worry a bit about is the performance of the "Source" tab in the JIRA issue view. For each linked Stash server it will make a request to that Stash server's REST API to discover any commits associated with that issue key. Stash indexes this data efficiently so these requests are typically very fast, but the overhead of just making an additional HTTP request for each linked server could slow things down if you have many linked Stash servers, especially if they're located far apart.

One mitigating factor is that the Source issue tab in JIRA is loaded asynchronously, so it won't slow down the time it takes to actually view the issue page. In the worst case, it would mean a few seconds to see the list of commits when the user actually clicks on the source tab.



Cool! Thanks for the reply.

In many to many relationship with jira/stash integration how does it handle duplicate jira/stash keys in muliple jira/stash instances?

For an example if i have PLAYP jira project key for 2 different projects in 2 different jira instances and linked PLAYP-2 jira issue in stash commit message. Which jira instance's PLAYP-2 issue will be opened now?

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,405 views 15 19
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