Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

See the Project Settings - Notification Policies and Repository Settings - Notification Policies for creating, deleting and editing notification policies. 

Bitbucket has a complete event subsystem that fires events whenever anything happens inside the application. For example, a  an event is fired whenever a repository branch is created or a pull request is merged.

To notify Mattermost from Bitbucket when a repository branch is created, your Bitbucket Administrator will set up the correct policy.  Then, when a repository branch is created from in a repository in Bitbucket, the designated Mattermost channel will receive a notification. 

Example:

A Bitbucket user creates a branch in the repository namedXXXApolloUI.  This repository belongs to the project Team.  This project has, for its project channels, the Mattermost channel XXXBitbucket.  With a "Repository Createdbranch created" notification policy set for the project, the following notification would be seen in the XXX Bitbucket channel upon repository branch creation:

Image RemovedImage Added


The date/time of creation are shown.  The notification shows the issue type, reporter, assignee, priority, status and resolution status. was created by the user  in JIRA. A link is provided to the issue in JIRABitbucket project (Team), the repository (ApolloUI) and the name of the branch (adam).

Links to Bitbucket are provided for team, repository and branch.


Here are the results in Mattermost for the different notifications:

Issues

Issue Created

Image Removed

Issue Updated - Priority changed.

Image Removed

Issue DeletedIssue Closed

Image Removed

Issue Resolved

Image Removed

LinksIssue has been linked to another issue.

Image Removed

Issue link deleted

Image Removed

CommentsComment Created

Image Removed

Comment Edited

Image Removed

Comment Deleted

Image Removed

Repository Events

Code pushed

Image Added

Branch created

Image Added

Branch deleted

Image Added

Pull Request Events
Opened

Image Added

Commented

Image Added

Declined

Image Added

Deleted

Image Added

Merged

Image Added

Reopened

Image Added

Reviewed

Image Added

Approved

Image Added


Unapproved

Image Added

Updated

Image Added