github-for-jira icon indicating copy to clipboard operation
github-for-jira copied to clipboard

Multiple JIRA instances

Open NathanHazout opened this issue 3 years ago • 6 comments

What happens if 2 companies share the same GitHub organization, but each have their own JIRA instance?

Company A linked their JIRA to the org, a long time ago.
Today, I linked my JIRA (Company B) to the org. It did not complain, it picked up the repos, and the commits are appearing successfully in my tasks.

HOWEVER, the link generation goes to company's A instance. Meaning, when I write [AA-001], the string is turned into a link to JIRA, but not the correct instance.

What's the expected behavior? Best practices?

NathanHazout avatar Oct 13 '21 08:10 NathanHazout

That's a very good question and an edge case we haven't really considered. Normally, the company would have different github orgs as well as different jira instances. We might have to consider this further and see what's possible because the "problem" here is that for each jira instance the github org is connected to, we get a separate webhook for each one, which means they don't know about each other. For this to work, we would need to add an ability to display more than one link for a ticket id without interfering with each other.

Do you have any expectations as to how you think it should show up in the PR for 2 different jira instances? Thanks :)

mboudreau avatar Oct 20 '21 22:10 mboudreau

@NathanHazout Since we haven't heard back in a few months, I'm going to close this one. Please reopen it if you're still affected by the scenario mentioned. Cheers.

atrigueiro avatar Feb 11 '22 01:02 atrigueiro

Hello - we're facing a similar scenario. Already have an existing github org linked to an existing Jira implementation. Have had another group start up their own separate Jira implementation that would like to link to the same existing org. Based on the above, it sounds like we could face a similar issue (Company B commits showing up in Company A's logs).

Curious if any progress was made in this area yet or no its not on the radar any more? Thanks!

dorkovitch avatar Mar 10 '22 21:03 dorkovitch

Hi, We have a similar scenario. Curious if there's now a fix or workaround for this? Cheers,

manishag-sportsbet avatar Jun 23 '22 00:06 manishag-sportsbet

I'm going to go ahead and reopen this. I believe this is still an issue currently. Just to confirm, is this only an issue for issue linking within Github? If the issue linked is tied to more than jira instance, how would you expect it to display to show the difference between the 2?

mboudreau avatar Jun 24 '22 03:06 mboudreau

As we haven’t heard from anyone on this issue in a while, I’m going to go ahead and close this issue. Please feel free to reopen if you still require assistance and would like us to look into this further.

rachellerathbone avatar Aug 25 '22 04:08 rachellerathbone

Hi there, this would be very helpful for our Matter project: https://github.com/project-chip/connectedhomeip/ as we have multiple members looking to use a single github project, with multiple jira installations.

ping @rachellerathbone

(sorry for the ping, but I don't see a way to re-open this issue directly)

woody-apple avatar Nov 08 '22 15:11 woody-apple

Hi there, same here. We use our GitHub org with many teams and host many repositories in it. Some belong to teams that traditionally use a separate Jira instance. We would like to integrate with e.g. Jira Cloud instance A to repository 1, and integrate with Jira Cloud instance B to repository 2, both within the same organisation.

Another issue with this setup is the way GitHub for Jira advertises itself to GitHub users upon new repository creation. There is a button to simply add this integration to the new repository upon creation. However, considering that we want to have two instances of Jira to pick from, what would this convenient install button look like in the future, when multiple Jiras to one GitHub Org will be supported?

The best workaround at the moment is to use distinct marketplace apps for distinct integration pairs. I'd rather use one solution and configure it for the given integration matrix.

frednntelia avatar Mar 03 '23 09:03 frednntelia

Would be good to get some attention on this. Large corporates can have multiple Jira instances rather than one, especially if they've grown through acquisitions or restructuring.

mendhak avatar Sep 12 '23 19:09 mendhak

@frednntelia do you by any chance have any documentation on how such workaround setup can be achieved? The Jira app available on Marketplace doesn't seem to accept multiple installations: https://github.com/marketplace/jira-software-github/

jezierskj avatar Nov 09 '23 11:11 jezierskj

@frednntelia do you by any chance have any documentation on how such workaround setup can be achieved? The Jira app available on Marketplace doesn't seem to accept multiple installations: https://github.com/marketplace/jira-software-github/

Hi there, sorry, no idea. I was going on about having multiple jira integration apps installed at the same time, not multiple installations in one jira integration app. Hope you'll find a better way 🤞🏾

frednntelia avatar Nov 09 '23 13:11 frednntelia

We are curious as to why this issue has been closed without a resolution. We are currently experiencing a similar problem, and since we have multiple Jira instances maintained by different teams within our company, it is imperative that Atlassian addresses this issue/case promptly.

asud1011 avatar Feb 12 '24 19:02 asud1011

We also came across a need for this recently but is a bit more straightforward. We want to use our sandbox Jira instance to test out integrations that require us to have the GitHub app installed. Our production Jira instance already has the GitHub app installed but don't want to introduce conflicts into the system because of project ticket name collisions, etc. Is this a supported configuration?

jeremystewart85 avatar Feb 21 '24 20:02 jeremystewart85

Hi, we are facing same issue where we need to connect 1 github org to 2 Jira instances and it's quite critical. Any suggestions/workarounds/solutions for this?

Thanks

tjaiani avatar Mar 14 '24 10:03 tjaiani

Hi github-for-jira team, We facing the same issue and need a solution. We are the main CI/CD team for Cloud Services at Moody's and have different OU's onboarding with us (single Github Org) and they have their own Jira orgs. Please consider reopening and Spiking a solution. Thank you.

cc: @Ryan-Yuanqing-Jiang

RHawley-rms avatar Mar 18 '24 23:03 RHawley-rms

Hi Github Team,

We are having a similar scenario, where we wish to integrate two Jira Instances to One Github Instance. Please let us know if there is a possible solution.

sumeetssmakamai avatar Apr 18 '24 16:04 sumeetssmakamai