2011-03-24 189 views
49

我一直在試圖找到一種方法來更新JIRA時,我承諾github。如何將github連接到JIRA?

它看起來好像沒有任何服務鉤子在github上做,但你永遠不知道,有人可能有忍者的方式,所以我想我會問。

+2

對於[JIRA Studio](http://www.atlassian.com/hosted/studio/),有一種方法可以與GitHub集成:[將GitHub與JIRA Studio集成](http://confluence.atlassian。 COM /顯示/ JIRASTUDIO /集成+ GitHub的+與+ JIRA +工作室)。我還沒有找到一種類似於獨立JIRA的簡單方法,但我認爲應該有辦法做到這一點。 – Kariem 2011-08-28 14:44:04

+0

使用jira和git有什麼好處? – 2014-11-18 00:54:39

回答

9

Atlassian的對GitHub的一個插件來連接兩個:

https://github.com/atlassian/jira-github-connector-plugin

看起來像它增加了一個項目設置爲指向一個GitHub的項目,這將顯示你的GitHub的一個提交標籤。

+14

請注意,該項目已被JIRA的DVCS連接器取代。你可以在這裏找到詳細信息:https://plugins.atlassian.com/plugins/com.atlassian.jira.plugins.bitbucket。現在,如果您已經爲您託管了JIRA'OnDemand'實例,則它已經被集成。你需要配置它。說明如下:http://confluence.atlassian.com/display/BITBUCKET/Linking+your+JIRA+Project+to+a+Repository – idStar 2012-05-13 13:56:59

+1

該鏈接已更改,它現在是https://confluence.atlassian.com/display/AOD/Linking + a + Bitbucket +或+ GitHub + repository + with + JIRA + OnDemand – jeffbyrnes 2013-05-08 19:28:00

+0

[DVCS功能現在已集成到JIRA中](https://marketplace.atlassian.com/plugins/com.atlassian .jira.plugins.jira-到位桶連接器-插件/版本)。 – vossad01 2017-12-04 01:32:16

40

UPDATE

對於到位桶,GitHub上和GitHub的企業整合,請查看以下鏈接:

Linking Bitbucket and GitHub accounts to JIRA

原帖

JIRA GitHub Connector被棄用:

該插件已被JIRA DVCS連接器取代,該連接器包含GitHub功能。

所以要吉拉連接到github上使用JIRA DVCS Connector for Bitbucket and GitHub

您可以連接到位桶或GitHub的賬戶使用JIRA免費的JIRA DVCS連接器插件。這個插件附帶了JIRA OnDemand。對於JIRA下載用戶,這是一個可以安裝的系統插件。使用DVCS連接器,您可以:

  • 將現有存儲庫(公有和私有)的全部或部分鏈接到JIRA。
  • 創建新的存儲庫並讓它們自動鏈接到JIRA。
  • 參考DVCS提交消息中的JIRA問題,並將這些提交顯示在JIRA的問題提交選項卡中。
  • 使用智能提交消息通過JIRA OnDemand工作流(例如,關閉,重新打開等等)轉換問題。

退房Using the JIRA DVCS Connector Plugin以獲取更多信息。

+7

Atlassian的例子是關於Bitbucket的最具體的例子,在Github企業中相當模糊。 – 2014-01-13 16:31:31

+0

「JIRA DVCS連接器插件已經停用,並納入獨立的JIRA軟件應用程序中」您的鏈接之一 – Raedwald 2017-03-09 15:31:18

1

我剛剛經歷同樣的問題,並找到答案和官方參考網站可能需要更具體的Github企業版。 如果您使用企業Github,您應該:

1)在企業設置下注冊應用程序,而不是在用戶的設置下。 2)假設您的JIRA網站爲http://myjira.com/jira,您可以訪問您的JIRA主頁,那麼Homapage URL和Authorization回調URL應該與您的JIRA網站URL相同。

3)當在JIRA中添加新帳戶時,Host字段應該是GitHub Enterprise,團隊或用戶帳戶應該是企業名稱,可以在Github的組織配置文件中找到。

4)主機URL應該是Github主頁。

然後我認爲它應該適用於連接JIRA和github的企業。

+0

不幸的是,JIRA的文檔不正確,並提示您爲GitHub輸入「團隊或用戶」。但是,如果您要設置組織的JIRA-GitHub連接器,則正確的方法是將其設置爲您的GitHub組織。 – rakehell 2015-10-30 17:08:52

2

如果你在2016年訪問該頁面,並使用雲JIRA,它是發現這裏 -

應用>>集成>> DVCS帳戶,而不是在附加功能,如在博客文章中提到被拋起來的谷歌。

+0

謝謝!這非常有幫助 – Mouna 2016-06-03 10:40:23

3

我最近製作了一個Chrome瀏覽器插件,它將編輯GitHubs PR頁面來顯示鏈接的Atlassian門票信息。

這將需要一個PR標題格式[ISSUE-9485] Some description,但工作很酷,如果你問我。

https://chrome.google.com/webstore/detail/github-jira-integration/faenbbkpfnklhncjianlfllkfekgghih

源代碼是在這裏:https://github.com/RobQuistNL/chrome-github-jira

截圖: Screenshot

編輯: 它還會自動創建一個 「模板」 爲你拉的請求,基於內容/票的描述。

例如它會在標題下方「驗收標準」的項目,並張貼作爲一個可檢查的列表中,增加了一些說明,一個如何測試等

0

對於那些你們誰是尋找如何從導入Project數據GitHub到JIRA上,那麼你應該去這個鏈接:https://confluence.atlassian.com/adminjiraserver071/importing-data-from-github-802592903.html

它給你如何做到這一部門的指示。我能在一切帶來和地圖的bug臭蟲等就算完成任務排在

如果鏈接決定不工作一天,這裏是我採取任何信貸摘要:

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. 

然後你只需選擇你想要添加的項目...其餘的很容易。 我希望這可以幫助。