LoginSignup
27
28

More than 5 years have passed since last update.

Redmineのチケットの変更をHubotを経由してチャットに通知する

Last updated at Posted at 2014-10-01

Redmineのチケットの変更をHubotを経由してチャットアプリに通知する方法を紹介します。

SlackやHipChatを使っている人は直接 sciyoshi/redmine-slackhipchat/redmine_hipchatを使った方が簡単だと思います。

概要

RedmineにWebHookプラグインをインストールし、チケット更新時にHubotへPOSTするように設定します。Hubotはデータを受け取り、チャットアプリに更新情報を通知します。

notification-screenshot.png

Hubotの設定

HubotにRedmineのチケット更新通知用のスクリプトをインストールします。

$ cd myhubot
$ npm install --save hubot-redmine-notifier
$ vim external-scripts.json
external-scripts.json
["hubot-redmine-notifier"]

Redmineの設定

RedmineにWebHookプラグインをインストールします。

$ cd $RAILS_ROOT/plugins
$ git clone git://github.com/suer/redmine_webhook.git
$ bundle install --without development test
$ rake redmine:plugins:migrate RAILS_ENV=production

インストール後Redmineを再起動し、WebHookのURLを設定します。
設定するURLは http://<hubot-host>:<hubot-port>/hubot/redmine-notify?room=<room>です。

redmine-webhook-settings-screenshot.png

27
28
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
27
28