jira and github
The Situation
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.
GitHub Setup
- 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
JIRA Setup
- 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
Secret Sauce
- The authorize GitHub application page appears
- Go up to the address bar.
- Find the part of the URL that looks like
organization%3DYOUR-NAME
and change it toorganization%3DORGANIZATION-NAME
. - 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
- development
- github
- jira