Giter VIP home page Giter VIP logo

mattermost-jira's Introduction

JIRA Mattermost Webhook Connector

For Mattermost administrator

You need incoming webhook URL in http://<mattermost_server>/hooks/<web_hook_id> format. Can be copied from Mattermost config.

Mattermost Config

  1. Go to ... menu
  2. System console
  3. IntegrationsCustom Integrations
  4. Enable Settings
    • Enable Incoming Webhooks: true
    • Enable integrations to override usernames: true
    • Enable integrations to override profile picture icons: true

Create Incoming Webhook

  1. Go to ... menu
  2. IntegrationsIncoming Webhooks
  3. Add Incoming Webhook

For JIRA administrator

  1. JIRA Administration → System
  2. ADVANCED → WebHooks
  3. Create a WebHook:
    • URL: https://yourserver?mattermost_hook_url=_mattermost_hook_url&channel=channel_name
    • Issue:
      • created: true
      • updated: true
      • deleted: true

Build Binary

go build

Run

./mattermost-jira -addr=127.0.0.1 -port=5002 -log=./test.log Addr defaults to 0.0.0.0 Port defaults to 5000 Log defaults to ./mattermost-jira.log

Test

While server is running in background or different session, execute:

Simple Test:

curl -X POST -H "Content-Type: application/json" --data @sample_hook.json "localhost:5000?mattermost_hook_url=http://localhost:8065/hooks/67qhmgccxffaunr886gfewoqfo&channel=off-topic"

Simple Repeated Test:

while sleep 0.2 
do 
	(curl -X POST -H "Content-Type: application/json" --data @sample_hook.json "localhost:5000?mattermost_hook_url=http://localhost:8065/hooks/67qhmgccxffaunr886gfewoqfo&channel=town-square") &
done
    curl -X POST -H "Content-Type: application/json" --data @sample_hook.json "jira-uchat-integration.corp.uber.internal?mattermost_hook_url=http://uchat-sandbox.corp.uber.internal/hooks/9kbfs1yooprsujd3ckadw4z66a&channel=super-test")

mattermost-jira's People

Contributors

csduarte avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

it33 ashish1099

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.