How do I connect github to JIRA?
I've been trying to find a way to update JIRA when I commit to github.
It doesn't look like there are any service hooks to do i开发者_JAVA百科t at github, but you never know, someone might have a ninja way, so I thought I'd ask.
UPDATE
For integrating with Bitbucket, check out the following link:
Linking Bitbucket and GitHub accounts to JIRA
ORIGINAL POST
JIRA GitHub Connector is deprecated:
This plugin has been superseded by the JIRA DVCS Connector, which includes GitHub functionality.
So to connect Jira to github use JIRA DVCS Connector for Bitbucket and GitHub:
You can connect Bitbucket or GitHub accounts with JIRA using the free JIRA DVCS Connector plugin. This plugin comes with JIRA OnDemand. For JIRA download users, this is a system plugin that you can install. Using the DVCS connector, you can:
- Link all or a subset of your existing repositories (both public and private to JIRA).
- Create new repositories and have them link automatically to JIRA.
- Reference JIRA issues from DVCS commit message and have those commits appear in the issue's Commits tab in JIRA.
- Transition issues through a JIRA OnDemand workflow (for example, Close, Reopen, and so forth) using smart commit messages.
check out Using the JIRA DVCS Connector Plugin for more information.
Atlassian has a plugin on GitHub to connect the two:
https://github.com/atlassian/jira-github-connector-plugin
Looks like it adds a project setting to point to a GitHub project and a tab that will show your commits in GitHub.
In addition you can also define Webhooks on the GitHub site that do a POST-Request to other Webservers. Have a look here: https://developer.github.com/webhooks/
On the JIRA site, you have the Jira REST APIs with which you can edit or update or create or do pretty much anything with your Jira issues: https://developer.atlassian.com/display/JIRADEV/JIRA+REST+APIs
I just experienced the same issue and found the answers and the official reference web maybe need to be more specific for Github enterprise version. If you are using the enterprise Github, you should:
1) Register the application under the enterprise's settings, not under the user's.
2) Suppose your JIRA site as http://myjira.com/jira which you can access your JIRA main page, then the Homapage URL and the Authorization callback URL should be the same as your JIRA site URL.
3) When add new account in JIRA, the Host field shoud be GitHub Enterprise, the Team or User Account should be the enterprise's name which can be found under the organization profile in Github.
4) The Host URL should be Github main page.
Then I think it should work for enterprise when connect the JIRA and github.
If you visiting this page in 2016, and using Cloud JIRA, it is find here-
Application>>Integrations>>DVCS Accounts, instead of under Add Ons as mentioned in blog posts being thrown up by Google.
I have made a small Chrome plugin recently which will edit GitHubs PR pages to show information on the linked Atlassian tickets.
It will require a PR title format of [ISSUE-9485] Some description
but works pretty cool, if you ask me.
https://chrome.google.com/webstore/detail/github-jira-integration/faenbbkpfnklhncjianlfllkfekgghih
Source code is here: https://github.com/RobQuistNL/chrome-github-jira
Screenshot:
EDIT: It will also automatically create a "template" for your pull request, based on content / description of the ticket.
E.g. it will take items under the header "Acceptance Criteria" and post it as a checkable list, adds some description, a how to test, etc.
Check out this plugin https://marketplace.atlassian.com/apps/1220080/smart-git-integration-for-jira Smart Git intagration for Jira add-on allows to connect your Jira project to Git with repository URL in a few clicks.
For those of you who are looking for how to import the Project
data from GitHub onto JIRA, then you should go to this link: https://confluence.atlassian.com/adminjiraserver071/importing-data-from-github-802592903.html
It gives you in dept instructions on how to do that. I was able to bring in everything and map bugs to bugs, etc. Even completed tasks came in.
If the link decides not to work one day, here is a summary which I take no credit for:
1. Log in to JIRA as a user with the JIRA Administrators global permission.
2. Choose > System. Select Import & Export > External System Import to open the List item Import external projects page.
3. Select the Import button associated with the GitHub option to open the GitHub Import Wizard.
4. On the GitHub Setup page, select which type of GitHub you are using. If you are using GitHub Enterprise you will also be required to provide your GitHub Enterprise URL. You also need to provide either your GitHub username and password, or a GitHub Personal Access Token. Note if you have used the GitHub import wizard before and saved a previous configuration file, you can select the configuration file here to speed up your import.
5. Click Next.
Have 2 factor authentication? Click here..
The Authentication page displays, verifying your authentication has been successful.
6. Click Next. The Map projects page displays, and will show a list of all your public and private repositories, as well as any repositories you have starred.
Then you just select the projects you wants to add...and the rest is easy. I hope this helps.
Top post is deprecated.
2020 URL:
$JIRAPROJECT.atlassian.net/secure/admin/ConfigureDvcsOrganizations!default.jspa
If you're connecting a Jira Core project:
Choose [WHEEL icon TOP RIGHT corner] > Products.
Under INTEGRATIONS, select DVCS accounts.
Select Link Bitbucket Cloud account.
That page would also allow Gitlab connection
精彩评论