Examples: Integration with Slack

Examples: Integration with Slack

When a new Request is created in Targetprocess → send message to Slack
Send personal Slack notifications about assignments
Send comments to Slack
Send mentions to Slack directly
Send overdue features to Slack
Send stuck stories to Slack

How to set up SlackID custom field

  1. Create a text custom field for Users
  2. Copy member ID from Slack's user profile
  3. Put member ID to SlackID custom field in Targepprocess
10381038

How to create new app in Slack

First of all, we need to create a new app in slack. Go to Main menu > Apps & integrations > Build > Create an App:

14781478

After that it would provide you to choose how you’d like to configure your app’s scopes and settings.
Select From Scratch:

10301030

Add Name of your application (it could be changed later) and Workspace where it would be installed:

10301030

How to generate Webhook URL in Slack

Now when your app is created we need to create an Incoming Webhook.
Press on Incoming Webhooks:

19141914

Press toggle button to Activate Incoming Webhooks:

14521452

Scroll down and press Add new Webhook to Workspace:

14521452

Select channel to which messages would be posted.

11141114

Now your Incoming Webhook is created and you can copy your URL:

13701370

📘

Note

You can add as many webhook as you want. Each Webhook could send
messages only to 1 channel.
More details about the creation and customization of slack apps can be found in api slack documentation.

🚧

You can't use Webhooks for sending direct messages to users. Please, use Slack Web API for it.

Configure Slack App to use Slack Web API

Slack Web API gives you more functions to be used compared to Webhooks.
To use Web Api we need to give our Slack Bot permissions and get token.

Go to your Slack App in Slack Api site and select OAuth & Permissions from the left menu:

23842384

Here you would find Bot User OAuth Token, which we will use later in our API requests.
Scroll down to Scopes and add OAuth scopes for Bot Token Scopes as in the screenshot below:

22002200

📘

Note.

It is basic permission scope required to send messages to public and private channels and direct messages to users.
More details about slack permissions scopes can be found in slack documentation.