- 1.Go to Plugins Marketplace > Jira.
- 1.Click Configure.
- 2.Generate a Secret for
Stats API Secret.
- 3.Optionally change settings for Notifications permissions and Issue Creation capabilities.
- 4.Click Save.
- 2.At the top of the page set Enable Plugin to True.
- 3.Choose Save to enable the Jira plugin.
To allow users to create and manage Jira issues across Mattermost channels, install the plugin as an application in your Jira instance. For Jira Server or Data Center instances, post
/jira instance install server <your-jira-url>to a Mattermost channel as a Mattermost System Admin, and follow the steps posted to the channel. For Jira Cloud, post
/jira instance install cloud <your-jira-url>.
As of Jira 2.1, you need to configure a single webhook for all possible event triggers that you would like to be pushed into Mattermost. This is called a firehose; the plugin gets sent a stream of events from the Jira server via the webhook configured below. The plugin's Channel Subscription feature processes the firehose of data and then routes the events to channels based on your subscriptions.
/jira webhookcommand to get your webhook URL to copy into Jira.
To control Mattermost channel subscriptions, use the
/jira subscribecommand in the channel in which you want to receive subscriptions. Then select the project and event triggers that will post to the channel. To manage all channel subscriptions as an administrator see Notification Management.
- 1.To get the appropriate webhook URL, post
/jira webhhok <your-jira-url>to a Mattermost channel as a Mattermost System Admin.
- 2.As a Jira System Administrator, go to Jira Settings > System > WebHooks.
- For older versions of Jira, click the gear icon in bottom left corner, then go to Advanced > WebHooks.
- 3.Click Create a WebHook to create a new webhook.
- 4.Enter a Name for the webhook and add the Jira webhook URL retrieved above as the URL.
- 5.Finally, set which issue events send messages to Mattermost channels and select all of the following:
- Issue link
- 6.Choose Save.
Previously configured webhooks that point to specific channels are still supported and will continue to work.
For granular control of how issues are sent to certain channels in your Mattermost instance, you can use the Jira plugin's Channel Subscriptions feature in the Mattermost interface. The webhook JQL used on Jira's side should be made broad enough to make full use out of the feature.
You can create multiple webhooks in Jira to point to the same endpoint on your Mattermost instance. This is useful when you only want issues from certain projects, or issues that fit a specific JQL criteria to be sent to your Mattermost instance. Larger organizations may want to filter the webhooks by project to minimize load on their Jira server, if they only need specific projects used for the webhook feature.
To control Mattermost channel subscriptions, use the command
/jira subscribein the channel in which you want to receive subscriptions. Then select the project and event triggers that will post to the channel. To manage all channel subscriptions as an administrator see Notification Management.