[Visual Studio Online] TFS love Slack, and vice versa

This post shows you how to integrate TFS into slack. Every time something happens in TFS, a message is posted in slack so all the members know about it

Sounds nice, right?

Here are the integration steps

Turning it on in TFS

Open your project in TFS. The address is usually “blahblahblah.visualstudio.com”. You have to sign in, and only an admin has this permission

Pick a Project you want to integrate

Inside that Project, click Settings to go to the settings section

In Settings > Service Hooks > Create the first subscription for this project

Scroll down, pick Slack and hit Next

In the Trigger section you can pick the events you want notifications for. Here I’ll pick code checked in. Once picked, remember to double check the path to your project

In the next step you’ll need one setting: the Slack Webhook URL. You have to go into slack to get that one.

Getting the Slack Webhook URL

Open slack, click the arrow after the team name > Apps and Custom Integrations

On the web page that opens, find the Incoming Webhook app

You can sign in to several slack teams and install it for those teams all at once.

Then pick the channel the notifications will be posted to and hit the button

On the next page you’ll see the Webhook URL. Copy it and paste it into the field from step 1

Hit Test to try it out

Finally hit the Finish button, and you have integrated TFS into Slack

Tips: you can add many more Trigger types

That’s it :3