Skip to content

Configure a Slack Integration

Table of contents

  1. Introduction
  2. Pre-requisites
  3. Create a new Notifications Configuration
  4. Define your new configuration
  5. Test your configuration

Introduction

CodeLogic can send notifications to external chat services. For example, you could configure CodeLogic to notify a Slack channel when analysis of a change request is complete. This guide will walk you through configuring notifications for Slack.

Pre-requisites

You will need a Slack API token to authorize CodeLogic to communicate with Slack

Instructions to Create a Web API Application

For more details, see: Create app on the Slack website.

  • Create a Slack app picture

  • Install the app picture

  • Navigate to "OAuth & Permissions" picture

  • Refer to your "Bot User OAuth Token" (starting with xoxb-) when configuring Slack notifications in CodeLogic picture

Create a new Notifications Configuration

  1. Navigate to the Admin page
  2. Select the "Notifications" tab
  3. Click "Create New"

picture

Define your new configuration

  • Copy and paste your Slack access token (from pre-requisites) beginning with xoxb- into the 'Access Token'.
  • Give your configuration a title.
  • Specify a destination ('channel' in the case of Slack).
  • Select events for which you want to receive Slack notifications. picture
  • Save your configuration

Test your configuration

You can test that your new configuration is working correctly by Clicking the "Test" button for your configuration in the list of configurations.
picture

If the test is successful, you should see a success indicator on the button.
picture