Add GitHub organization repositories to Jira Software

Still need help?

The Atlassian Community is here for you.

Ask the community

This article requires fixes

This article has been Flagged for fixing. Use caution when using it and fix it if you have Publisher rights.

Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Problem

When linking GitHub account on Jira (DVCS accounts), it does not include repositories from other GitHub Organizations associated to your GitHub account.

Cause

The DVCS connector in Jira will only show repositories where the Team or User Account entered is the owner of the organization ( owns this application ). You check this at the organization page on GitHub for example : 

notice that it says jiracomp owns this application (organization). This is the name that you need to enter on the Jira DVCS Team or User Account field.


Resolution

Here is the step you can take to add a GitHub organization repository to Jira:

  1. On GitHub, click on Your Profile 

  2. On your profile locate the organization that you would like to add into Jira and then click on it 

  3. On the organization page, click on the Settings tab. 

  4. Select the Developer SettingsOAuth apps and click on Register a new OAuth application

  5. Enter Jira's details and Register application

  6. Take note of the Client ID & Client Secret on the next screen. These details will be used to connect the GitHub organization on Jira
  7. On Jira, go to to the DVCS page > Click on Link GitHub account

  8. Enter the details as such
    1. Host: GitHub
    2. Team or User Account: Name of the organization. 

      When creating the OAuth tokens, this is displayed on top of the page, for example in the screenshot below, it is jiracomp :

    3. Client ID: From the OAuth application page on GitHub
    4. Client Secret: From the OAuth application page on GitHub
  9. Click Add
  10. Click Authorize application when the reciprocal link is created.
  11. Now the Organizations repository should be visible on the DVCS Account page : 


DescriptionWhen linking GitHub account on Jira ( DVCS accounts ), it does not include repositories from other GitHub Organizations associated to your GitHub account.
ProductJira
PlatformServer
Last modified on Jan 17, 2024

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.