jira4r:使用Ruby操作JIRA

來源:互聯網
上載者:User

jira4r是一個用來操作JIRA 問題跟蹤系統的Ruby庫。
安裝需求 (Windows下):
1. Ruby
2. soap4r (gem install soap4r)
3. jira4r (gem install jira4r)

如果(irb中) require 'jira4r' 後會出現‘XML processor module not found’的抱錯提示,其解決辦法是(windows下面)開啟C:\Ruby193\lib\ruby\gems\1.9.1\gems\soap4r-1.5.8\lib\xsd\xmlparser.rb, 其中66行的 c.downcase == name 改為 c.to_s.downcase == name

 

Sample Code:

# Use gem('soap4r') to ensure that this package is loaded instead of the default implementation # contained in the ruby interpreter.gem('soap4r')gem('jira4r')require 'jira4r'# 2 = the version of the WSDL interface. At present, only v2 is supported# "http://jira.atlassian.com" = The Base for your JIRA installation# The module is named Jira4R, not only Jirajira = Jira4R::JiraTool.new(2, "http://jira.yourdomain.com")# Login to the JIRAjira.login("username", "password")# Get that projectputs jira.getProjectByKey("XYZ").inspect

 

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.