Slack for Confluence

Send Slack notifications for Confluence pages, blogposts, comments and questions for changes on a page, in a space or globally

Documentation

This is the documentation for the Atlassian Confluence Add-on Slack for Confluence.

Installation

Head to the General configuration within Confluence by clicking on the cogwheel in the upper-right-hand corner and selecting “General configuration”. Note that Administrator privileges are required to access the General Configuration.

In the menu on the left side, navigate to “Find new add-ons” under the “Atlassian Marketplace” category. Search for “Slack for Confluence”, wait until the entry “Slack for Confluence” is shown and proceed to “Install” the add-on.

General usage

After having installed the Add-on from the Atlassian Marketplace, you first need to do some general configuration.

Please head to the General configuration and select the “Slack for Confluence” menu entry on the left side under the “Configuration” category. There, you need to paste a “Slack Incoming Webhook URL” into the form. To generate the URL, just click on the “Create a new Incoming Webhook in Slack” link and setup a new Incoming Webhook within Slack. The channel and other settings in the Incoming Webhook don’t matter, as all of them get overridden within Slack for Confluence. Proceed by copying the Webhook URL from Slack and paste it into the form in the Slack for Confluence configuration.

You can also modify the Bot’s name, icon and the appearance of the notifications within Slack in the Global Configuration.

To try out sending notifications, specify one or more channels under “Global notifications”. Note that all updates throughout the entire Confluence installation will be propagated with notifications to those channels and users, so it might not be reasonable to use this with big Confluence installations. You can configure more fine-grained notifications in scope of a Space, Page or User as described below.

Space configuration

To access the Space configuration of Slack for Confluence, click on the “Spaces” drop-down next to the Confluence logo in the upper-right-hand corner and select “Space directory”.

Here, click on the circled (i) button to access the Space details page of the Space you want to set up notifications for.

For newer versions of Confluence, you now need to select the “Add-ons” tab on the top of the page. In older versions of Confluence, this tab is called “Space Admin”. Underneath, select the “Slack for Confluence” tab.

Here, you can again set up Slack channels and users to be notified of any updates that are checked under the “When to show notifications” section.

Page/blog post configuration

To send notifications when individual pages or blog posts are changed, you can access the configuration by clicking on the three dots in the upper right-hand corner and select “Slack Notification”.

Here, you can again set up Slack channels and users to be notified of any updates that are checked under the “When to show notifications” section.

User configuration

You can also notify yourself if you’ve been mentioned on a page or a task for you has been added, updated or removed. To configure notifications, click on your avatar (in the lower left-hand corner for cloud, upper right-hand corner for server) and select “Slack Notifications”.

Here, you can again set up Slack users or channels to be notified of any updates that are checked under the “When to show notifications” section.

Filtering notifications by labels

If you want to get notifications only for pages or blog posts with certain labels, you can append the labels to the channels/users in parentheses as shown below.

Confluence Questions configuration

If you have the Questions for Confluence addon installed as well, you can also configure notifications when questions or answers have been updated.

You can get notifications only for certain question topics, similar to how you can restrict notifications for labels on pages or blog posts, by adding the topics in parentheses.

Troubleshooting

Access restrictions (Cloud version only)

Make sure the Slack for Confluence user has access to the pages that are updated. For example, if you want to send notifications for a Space that has restricted access, make sure to add the “Slack for Confluence” user to the list of users that have “View” permissions:

Another issue can be the permissions set on an individual blog post, page (or parent page), where you would need to grant the “Slack for Confluence” user “View” permissions as well:

Access restrictions for questions (Cloud version only)

For question updates in restricted Spaces, you also need to give Slack for Confluence individual access. In the Space permissions, click on the “Add-on” tab:

Make sure the “Atlassian Connect Plugin” is selected in the dropdown box. Then, add the “Slack for Confluence” user and give it “View” permissions for Questions:

Notifications for users with spaces in their usernames

If notifications don’t work with the @username style (especially for usernames including spaces), you can alternatively use the @userid format. The Slack user ID can be retrieved by first navigating to your Slack profile in the upper left-hand corner of the Slack UI:

Then, click on the drop-down button on the right-hand side to reveal your Slack user ID:

Enter this ID prefixed with an @, e.g. @U08CWUG2F into the notification configuration. Notifications should now work.

Mattermost compatibility

Slack for Confluence is fully compatible with Mattermost webhooks. Make sure to use the technical channel name (i.e. the one in the URL) when configuring channels for Mattermost.

Other issues

If you encounter any other issues, feel free to send us an email at support@codefortynine.com. We’ll usually answer within 1-3 business days.

 

Thanks for using Slack for Confluence!