See the Amplifier for Mattermost for JIRA Project Administration Guide for Project Settings - Notification Policies and Repository Settings - Notification Policies for creating, deleting and editing notification policies.
JIRABitbucket has a complete event subsystem that fires events whenever anything happens inside the application. For example, an ISSUE_CREATED an event is fired whenever an issuea branch is created or a pull request is merged.
To notify Mattermost from JIRA Bitbucket when an issue a branch is created, your JIRA Project Bitbucket Administrator will set up the correct policy. Then, when an issue a branch is created from JIRA for that projectin a repository in Bitbucket, the designated Mattermost channel will receive a notification.
Example:
A JIRA Bitbucket user creates an issue of type Task in the project HerzumAmplifierDemo (project key HQ)a branch in the repository namedApolloUI. This repository belongs to the project Team. This project has, for its project channels, the Mattermost channel Amplifier DevelopmentBitbucket. With an issue a "branch created" notification policy set for the project, the following notification would be seen in the Amplifier Development Bitbucket channel upon issue branch creation:
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:
Issue Created
Issue Updated - Priority changed.
Repository Events | |
---|---|
Code pushed | |
Branch created | |
Branch deleted | |
Pull Request Events | |
Opened | |
Commented | |
Declined | |
Deleted | |
Merged | |
Reopened | |
Reviewed | |
Approved | |
Unapproved | |
Updated |