Pull Request related notifications not appearing in Slack
Platform Notice: Cloud Only - This article only applies to Atlassian products on the cloud platform.
Summary
Although Pull Request notifications on slack are configured for multiple branches in a repository, sometimes the notifications are not sent to slack.
Diagnosis
Set up Slack notifications for two channels #prod and #test in a repository.
This repository needs to have 4 branches "master", "dev", "test" and "qa".
Set up Slack Notifications under Repository Settings for #prod channel and #test channel
For #prod channel, the configuration is set up "Repository-wide".
For #test channel, the configuration is set up for the "test" branch.
Create a Pull Request from "test" branch to "master" branch.
The #prod channel receives a notification, the #test channel does not.
Create a Pull Request from "qa" branch to "test" branch.
#prod channel and #test channel both receive slack notifications.
#prod channel:
#test channel:
Create a Pull Request from "test" branch to "dev" branch.
#prod channel has a notification, #test channel does not.
Cause
Slack Notifications for Pull Requests run based on target branch configuration. This is why a Pull Request created from "test" branch to "dev" branch does not give a notification on the #test slack channel, because there is no Slack notification for Pull Request creation configured for "dev" branch. This applies to all Pull Request slack parameters.

Solution
Ensure that slack notifications are configured for destination branches to generate Pull Request related slack notifications.
Was this helpful?