Skip to content
Go to file

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time


Slack's Jira integration does not support for comments, yet.

But, Hubot can do that for you :)



Install & Configuration

1. Hubot Settings

1.1 install with npm

Install this package with npm in your hubot path.

$ cd your_hubot_path
$ npm install hubot-jira-comment --save
1.2 Add to external-scripts list

Add this package to external-scripts list.

$ echo '["hubot-jira-comment"]' > external-scripts.json

Now your hubot will load this package when it starts.

1.3 Set environment variables

Hubot already includes support for the express web framework to serve up HTTP requests. (explained at hubot's

It listens on the port specified by the EXPRESS_PORT or PORT environment veriables and defaults to 8080.

$ export PORT=9009

To generate links back to jira, you need HUBOT_JIRA_URL environment variable

$ export HUBOT_JIRA_URL=""
1.4 Run & Test

Now hubot is ready.

Start your hubot, and it will start to listen on /hubot/chat-jira-comment/:room on 9009 port.

Let's test by sending a POST request to /hubot/chat-jira-comment/:room path with jira webhook JSON data, using curl.

There's a sample Jira Webhook Post message on atlassian webpage, but that's too long, so let's test with a simpler json data.

$ curl \
-H "Content-Type: application/json" \
-d \
 "issue": {
}' \

If you ran hubot using slack-adapter, you will receive a message from Hubot on #general channel.

If you ran hubot using shell-adapter, you will receive a message like below on your console.

hubot> *key summary* _(
@mnpk's comment:

2. Jira Settings

2.1 Add a webhook

You can add an webhook on Setting > System > Advanced > WebHooks menu.

(The page URL looks like http://<your_jira_path>/plugins/servlet/webhooks)

Create new webhook by click on Create a WebHook button.

URL is http://<your-hubot-listener>:<port>/hubot/chat-jira-comment/<room> with your hubot address, port, room. (e.g. If your hubot's address is, your hubot's PORT is 9009, your chat room name is #general, then the URL will be

Make sure to check on Issue > update checkbox.

Click Create button, and... that's all.


Forward Jira Comments to Slack.



No packages published

Contributors 4

You can’t perform that action at this time.