JIRAのCLI
python製だとこんなのがあります。
http://tdoc.info/blog/2012/12/22/jira_cli.html
Node.js製だとこんなの
http://tebriel.github.com/jira-cli/
ただ僕の環境(Mac 10.8.2)だと以下のようなエラーになりました。
$ jira -f HBASE-5533 TypeError: Cannot read property 'statusCode' of undefined at Request.findIssue (/usr/local/Cellar/node/0.8.21/lib/node_modules/jira-cli/node_modules/jira/lib/jira.js:140:25) at Request.init.self.callback (/usr/local/Cellar/node/0.8.21/lib/node_modules/jira-cli/node_modules/jira/node_modules/request/main.js:127:22) at Request.EventEmitter.emit (events.js:96:17) at Request.init (/usr/local/Cellar/node/0.8.21/lib/node_modules/jira-cli/node_modules/jira/node_modules/request/main.js:178:10) at new Request (/usr/local/Cellar/node/0.8.21/lib/node_modules/jira-cli/node_modules/jira/node_modules/request/main.js:110:8) at request (/usr/local/Cellar/node/0.8.21/lib/node_modules/jira-cli/node_modules/jira/node_modules/request/main.js:1116:11) at findIssue (/usr/local/Cellar/node/0.8.21/lib/node_modules/jira-cli/node_modules/jira/lib/jira.js:139:14) at JiraHelper.getIssue (/usr/local/Cellar/node/0.8.21/lib/node_modules/jira-cli/lib/jira-cli.js:46:24) at Object.<anonymous> (/usr/local/Cellar/node/0.8.21/lib/node_modules/jira-cli/lib/jira.js:217:15) at Object.<anonymous> (/usr/local/Cellar/node/0.8.21/lib/node_modules/jira-cli/lib/jira.js:233:4)
それ以外ではAtlassian Command Line Interfaceというものがあります。JIRA専用というわけではなくConfluenceとかにも使えるようです。
で、僕は知らなかったのですが、AtlassianのMarketplaceなるのものがあるようでそこにありました。
https://marketplace.atlassian.com/plugins/org.swift.atlassian.cli
ダウンロードして解凍して以下のJIRAを参照してみました。
https://issues.apache.org/jira/browse/HBASE-5533
実行結果はこんな感じ。
$ ./jira.sh --action getIssue --issue "HBASE-5533" --server https://issues.apache.org/jira/ --password ... --user ... Warning: user is not an administrator. Custom fields names are not available for use or validation. Use custom field ids! Data for issue: HBASE-5533 (12545386) Issue key . . . . . . . . . . : HBASE-5533 (12545386) Type . . . . . . . . . . . . : Improvement (4) Status . . . . . . . . . . . : Closed (6) Priority . . . . . . . . . . : Minor (4) Assignee . . . . . . . . . . : smanek Reporter . . . . . . . . . . : smanek Created . . . . . . . . . . . : 12/03/07 3:25 Updated . . . . . . . . . . . : 13/02/26 17:12 Due date . . . . . . . . . . : Security level . . . . . . . : Summary . . . . . . . . . . . : Add more metrics to HBase Description . . . . . . . . . : To debug/monitor production clusters, there are some more metrics I wish I had available. In particular: - Although the average FS latencies are useful, a 'histogram' of recent latencies (90% of reads completed in under 100ms, 99% in under 200ms, etc) would be more useful - Similar histograms of latencies on common operations (GET, PUT, DELETE) would be useful - Counting the number of accesses to each region to detect hotspotting - Exposing the current number of HLog files Components . . . . . . . . . : Affects versions . . . . . . : '0.92.2' (12319888), '0.94.0' (12316419) Fix versions . . . . . . . . : '0.94.0' (12316419), '0.95.0' (12324094) Environment . . . . . . . . . : Resolution . . . . . . . . . : Fixed (1) Votes . . . . . . . . . . . . : 0 Security level . . . . . . . : customfield_12310310 . . . . : 11.0 customfield_12310220 . . . . : 6/Mar/12 customfield_12310420 . . . . : 230574 customfield_12310191 . . . . : Reviewed customfield_12310920 . . . . : 12109 customfield_12310222 . . . . : 10002_*:*_4_*:*_905547467_*|*_1_*:*_4_*:*_825878076_*|*_5_*:*_1_*:*_0
ヘルプを見るとわかりますが、大量のコマンドラインオプションがあります。
これから実際に僕が使うかは分かりませんが使うとしてもviewerとしてかなあと思っています。