Giter Site home page Giter Site logo

slack-jira-bot's Introduction

slack-jira-bot

Build Status

Slack-jira-bot is a simple Slack bot that listens to all Slack channels it's invited to. When it notices a JIRA ticket id in the channel, it fetches information about that ticket from JIRA and sends that info to a thread where it noticed the ticket id.

Running

$ npm install
$ npm start

Of course, that won't get much done for you, so read on how to connect your bot to Slack and JIRA.

Configuring Slack

Create your Slack App here https://api.slack.com/apps?new_app=1. Add bot user for that app. For this app to work you need scopes bot and search:read. You can add the scopes from OAuth & Permissions page. You will also get your Bot User OAuth Access Token from that page.

JIRA OAuth

You will need OAuth token for Jira to be able to use this bot. Access token can be created by following instructions from here https://developer.atlassian.com/server/jira/platform/oauth/

In config file you have to configure four things. You find most of the values from the file config.properties that you can find from target directory of your Java project.

  • jiraToken: access_token in config.properties
  • jiraTokenSecret: secret in config.properties
  • jiraConsumerKey: consumer_key in config.properties
  • jiraPrivateKeyFile: Path to file containing private key in PEM format. If you followed instructions this should be in file called jira_privatekey.pem

Running with Docker

After you have configured your bot, you can use also Docker to run it. Just build your image and run it e.g.

$ docker build -t slack-jira-bot .
$ docker run slack-jira-bot

Note that your JIRA private key file should be somewhere inside your project directory in order to access that inside Docker process.

slack-jira-bot's People

Contributors

ollesetta avatar

Watchers

Henrik Paul avatar James Cloos avatar Mihail Podobivsky avatar Jon Tarkiainen avatar Olli Helttula avatar Iivari avatar Olli Matikainen avatar Hlib Liapota avatar hannimi avatar Wojciech avatar

Forkers

ollesetta

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.