Slack bot for parsing Jira issues mentioning in messages and displaying its info in chat.
npm install jira-slack-boot
yarn add jira-slack-boot
- Create new bot integration in Slack as described here
- Invite this bot into channel(s) where you want to get info about Jira issues
- 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();
- Start your bot
node index.js
- 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 tofalse
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