Skip to content

Slack bot for parsing Jira issues keys in messages and displaying its info in chat.

License

Notifications You must be signed in to change notification settings

okovpashko/slack-jira-ticket-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

slack-jira-ticket-parser

Slack bot for parsing Jira issues mentioning in messages and displaying its info in chat.

Installation

Via NPM

npm install jira-slack-boot

or via Yarn

yarn add jira-slack-boot

Usage

  1. Create new bot integration in Slack as described here
  2. Invite this bot into channel(s) where you want to get info about Jira issues
  3. Create js file (e.g. index.js) with the following content
'use strict';
const Server = require('jira-slack-bot');
const server = new Server({
  jira: {
    url: 'https://example.com',
    user: 'john',
    password: 'password',
    strictSSL: false,
  },
  slack: {
    apiKey: 'your slack api key',
    channelsConfig: {
      'channel name': ['project key']
    }
  },
  logLevel: 'info'
});

server.start();
  1. Start your bot
node index.js

Configuration options

  • jira.url - Jira server url (required)
  • jira.user - Jira username (required)
  • jira.password - Jira password (required)
  • jira.strictSSL - whether to check SSL certificate of Jira server. Default: true. Set to false if you have self-signed certificate
  • slack.apiKey - api token for your bot (required)
  • slack.channelsConfig - object with a channel name as a key and an array with issue keys as a value.
  • logLevel - log level supported by winston

About

Slack bot for parsing Jira issues keys in messages and displaying its info in chat.

Resources

License

Stars

Watchers

Forks

Packages

No packages published