You have a private repository owned by an organization and you’re tasked with getting your JIRA instance talking with GitHub. Fear not for this post contains the secret sauce for making this work.
- Head to Account Settings -> Applications -> Register New Application
- Application name: JIRA DVCS
- Homepage URL: Your JIRA URL
- Authorization callback URL: Your JIRA URL
- Click Register application
- Leave this page open so you can later copy the Client ID and Client Secret
- Administration -> Add-Ons
- Click DVCS Accounts under SOURCE CONTROL
- Click Link Bitbucket or GitHub account
- Select GitHub
- Enter your GitHub account instead of your org or team name
- Copy your Client ID into the OAuth Key
- Copy your Client Secret into the OAuth Secret
- Click Add
- The authorize GitHub application page appears
- Go up to the address bar.
- Find the part of the URL that looks like
organization%3DYOUR-NAMEand change it to
- Visit the modified URL
- Click Authorize
- Ignore the error from JIRA about “Bad Verification code”.
- Go back to Administration -> Add-Ons -> SOURCE CONTROL -> DVCS Accounts
- You should now see all your repositories