Connecting multiple Jira sites to a single Github Org causes issues with multiple projects syncing smart commits

XMLWordPrintable

    • 3
    • Severity 3 - Minor
    • 3

      Issue Summary

      When two separate Jira sites have the same project key and share the same GitHub organization, the Github for Jira app is syncing smart commits from both repositories to both projects on both Jira sites. This causes confusion between the teams as the commits are appearing in both Jira projects. It seems there is no current way to support multiple Jira instances and handle the possibility of duplicate project keys being created in both instances.

      It is also worth mentioning that updating the project key will not resolve this issue because the old project key will redirect to the new one. A permanent fix is requested to prevent this from happening in the future, as it may be challenging to coordinate between two different instances to ensure that two projects with the same key are not accidentally created.

      At this time, when this happens, there doesn't appear to be a straight forward way to "untangle" the smart commits between these two projects.

      Steps to Reproduce

      1. Create two separate Jira instances.
      2. In each instance, create a project with the same project key.
      3. Use smart commits to include the project key in the commit messages.

      Expected Results

      Ideally, there should be a mechanism to support multiple Jira instances and handle the possibility of duplicate project keys, possibly by filtering repositories. 

      Actual Results

      The smart commits are appearing in both Jira projects, despite them being on separate instances. 

      Workaround

      You can remove 'all repos' access and switch to 'only select repos,' ensuring that each Jira site has access to separate repositories.

      If repository A has only granted permissions to site A, you won't see data showing up in site B.

      This requires you to only give access to select repos and to not have the same repos connected to different Jira hosts. This solution may not be ideal for customers with thousands of repositories, as they would need to manually select each one to grant permissions. However, it can serve as a temporary workaround until the bug can be addressed.

      To make the change:

      1. Go to Apps in Jira
      2. Select Github for Jira
      3. Select Get Started
      4. Click the edit button next to All repos
      5. This will take you to github where you can select which repositories the Jira site should have access to.

       

            Assignee:
            Unassigned
            Reporter:
            Avery (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated: