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

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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

235 views 1 18
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