How to integrate JIRA and BitBucket application with Rocket.Chat

Rocket.Chat is the best Slack altenative.

If company also has issue management like JIRA and source code repository management system like BitBucket, you can also sending message to Rocket.Chat automatically to easy notify update information about your work progress.

You can see the integration guide from Rocket.Chat documentation.

Rocket.Chat Documentation

How to send JIRA notification to Rocket.Chat

1. Create new Bot user

In Rocket.Chat go to “Administration” -> “Users” and create new bot user(Select user role to Bots). We will use this user as a sender of JIRA notification. Just make a user like ‘jira’ and activite it.

2. Create new integration

  1. In Rocket.Chat go to “Administration” -> “Integrations” and create “New Integration”.
  2. Click “Incoming WebHook”
  3. Select each option like bellow
    • Enabled : True
    • Name (Optional) : JIRA Notification
    • Post to Channel : /Input channel which WekHook will be posted/
    • Post as : /Input username you already created by step 1/
    • Script Enabled : True
  4. Input Script like this gist

Press Save Changes button and copy Webhook URL.

3. Create a WebHook on JIRA

Go to JIRA as administrator and goto “System” -> “WebHooks” and click “Create a WebHook”. Input like this:

  • Name : Name of webhook
  • Status : Enabled
  • URL : Paste webhook url you copied from step 5.
  • Event : Check events which you want to send notification message

All done. Your JIRA notifications will be sent to Rocket.Chat.

How to send BitBucket notification to Rocket.Chat

1. Create new Bot User

Just like the step 1 of JIRA integration, create a new bot user like ‘bitbucket’.

2. Create new integration

Same as step 2 of JIRA integration, but use this script to Script section.

Press Save Changes button and copy `Webhook URL’.

3. Create a WebHook on BitBucket

BitBucket doesn’t have WebHook function basically, But they provide it as add-on.

Got to BitBucket as administrator and goto “Administration” -> “Find new add-ons”. Search Bitbucket Web Post Hooks Plugin and install it.

BitBucket have to setting hook per repository. Click repository and go to “Settings” -> “Hooks” and click “Post-Receive WebHooks”.

Paste WebHook URL you copied by step 2.

All done. BitBucket notifications will be sent to Rocket.Chat.

zemna

Programmer/Web/Mobile/Desktop

You may also like...

Leave a Reply