fkrauthan / slack-jira-bot

Provide URL expansion when Jira issues are mentioned in a Slack chat

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Slack Jira Issue Expansion

Build Status

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

From Source

go get github.com/nlopes/slack
go get github.com/plouc/go-jira-client
go get github.com/meanbee/slack-jira-bot

cd $GOPATH/github.com/meanbee/slack-jira-bot
go install

$GOPATH/bin/jira-bot

Docker Image

docker pull quay.io/meanbee/slack-jira-bot

Configuration

The configuration is run of environment variables:

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

About

Provide URL expansion when Jira issues are mentioned in a Slack chat

License:MIT License


Languages

Language:Go 100.0%