No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README.md
config.js
package.json
server.js

README.md

youtrack_slack_bot

  1. Before start you should edit config.js
xmpp: {
      jid: 'set your jid',
      host: 'set your jabber host',
      password: "set jabber password",
      reconnect: true
},
"slackWebhook": {
       host: 'hooks.slack.com',
       path: "set your hook path", you well need to create Incoming Webhook for Slack
       method: 'POST'
 },

defaultChannel: "set your slack channel" - default channel for incoming messages

defualtUserName: "set your slack user name" - default user for sending messages. You will need dedicated account for this

you can specify filters to send messages with specific text to a specific Slack channel

"slackPayloads": [
        {
            channel: 'set your channel',
            username: 'set your user name',
            icon_url: 'http://blog.jetbrains.com/wp-content/uploads/2014/01/YouTrack-logo-200x200-150x150.jpg',
            filter: 'custom filter field'
        }
    ]
  1. Application applies some formatting for messages. It appends "NEW:" tag to new tasks; "UPD:" tag to modified tasks; "UPD+COMMENT:" tag to modified tasks with comment, "COMMENT:" tag to tasks with only comments. It also show updated fields and values like "Manager -> Olga".

  2. To start the app run following command: node server.js &