Provide URL expansion when Jira issues are mentioned in a Slack chat
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
build/docker/shell Add shell container for easier development May 3, 2017
src Use attachments for the messages (#9) May 4, 2017
.gitignore
.travis.yml Reorganise code directories for travis May 4, 2017
Dockerfile Use new paths May 4, 2017
LICENSE Initial commit Sep 25, 2015
docker-compose.yml
readme.md

readme.md

Slack Jira Issue Expansion

Build Status

Update 2017-08-24: If you're looking to get setup quickly then you should check out https://slack.atlassian.io before using this image. If that's not for you - come back!

A killer feature of the integration between Hipchat and Jira is the issue expansion. Whenever a Jira issue is mention in the chat, the Jira integration would pop up some high level information about the issue and a link.

With the Jira integration in Slack being a bit light, we decided to implement a simple bot using the Slack RTM API:

Installation

Docker Image

docker run -it --restart=always -d \
    -e JIRA_BASEURL=https://yourjirainstall.atlassian.net \
    -e JIRA_USERNAME='yourjirausername' \
    -e JIRA_PASSWORD='yourjirapassword' \
    -e SLACK_API_KEY='yourslackapikey' \
    meanbee/slack-jira-bot:latest

Configuration

The configuration is run of environment variables:

  • SLACK_API_KEY
  • JIRA_BASEURL, e.g. https://yourcompany.atlassian.net
  • JIRA_USERNAME
  • JIRA_PASSWORD