Microsoft Teams with Visual Studio Team Services (VSTS) and Team Foundation Server (TFS)

VSTS | TFS 2017.2

Note

This topic applies to VSTS and to TFS 2017.2 and later versions.

See activity about your VSTS or Team Foundation Server (2017.2 and later) projects directly in your Microsoft Teams channel, for example:

  • Work item updates
  • Pull requests
  • Code commits
  • Builds
  • Release deployments and approvals

Also bring your VSTS Kanban board directly into Microsoft Teams as a tab.

While the functionality is the same across VSTS and Team Foundation Server, the configuration process is different. Check out the appropriate getting started section below for details.

Configuring a new connector for VSTS

  1. To bring events from VSTS into Microsoft Teams, click the ellipsis or '...' at the top nav of your team channel, and then select Connectors. Adding a new Connector to Teams

  2. Select VSTS from the list. Connectors list

  3. Select your VSTS account (you may be prompted to sign in first), the project, and your team. VSTS Connector event configuration

  4. Choose the type of activity you want to be notified about. Depending on the event, you may be given further fields to filter down the notifications so you can filter out notifications your team does not care about. For example, for work item events, you can filter by area path, work item type, and even particular field changes. Example work item event configuration

  5. When you are happy with the configuration, save it.

Activity from your VSTS project will start appearing in your Teams channel.

Changing an existing connector

To make a change to an existing connector:

  1. Navigate to the "Configured" tab on the Connector dialog, find the connector, and click Manage. Example work item event configuration

Configuring a new connector for Team Foundation Server (TFS)

Configuring integration between Team Foundation Server and Teams is a two step process. First setup a connector in Teams, then setup one or more service hook subscriptions in your Team Foundation Server project.

Note

Project administrator permissions are required to create service hook subscriptions.

From Teams

  1. To bring events from TFS into Microsoft Teams, click the ellipsis or '...' at the top nav of your team channel, and select Connectors. Adding a new Connector to Teams

  2. Select Team Foundation Server from the list. Connectors list

  3. Choose a name for the Connector, for example "My project notifications", and click Create. Note: this name is only used for managing the Connector. Connectors list

  4. Copy the generated web hook URL. You will provide this URL when setting up service hook subscriptions in your TFS project.

From Team Foundation Server

  1. From your TFS team project page (https://mycompany/tfs/[collection]/[project]), navigate to Service Hooks in the settings: VSTS Service Hook Settings

  2. Click Create subscription and select the "Teams" service.

  3. Choose the type of activity you want to appear in your Teams channel.

    You can filter each of the triggers in specific ways. For example, the pull request created trigger can be filtered on the repository in which the pull request occurs, the target branch it applies to, and the team members that are required or invited to review the request.

  4. Paste the web hook URL from the Teams connector configuration step and click Finish.

Activity from your TFS project will start appearing in your Teams channel.

Kanban board in Teams (VSTS only)

Kanban board tab in Teams channel

Developers and product managers can track and create new work items by bringing their VSTS Kanban boards right into Microsoft Teams. All your favorite Kanban board features - live refresh, card styling, tag coloring, extensions, and more - are available without leaving your team's channel.

Note

The Kanban board integration has the following limitations

  1. Only works for VSTS (Team Foundation Server is not supported)
  2. Only Kanban boards within VSTS accounts in the same organization (Azure Active Directory tenant) as your Microsoft Teams account can be configured.

Configuring your VSTS Kanban board for Microsoft Teams

  1. To bring your Kanban board into Microsoft Teams, click the '+' ('add new tab') button on the top nav of your team channel. Find the Visual Studio icon and follow the steps to connect to your VSTS account.

Add a new tab to Teams channel

  1. Once you have authenticated and selected your VSTS account, select the project, team and level of the board you want to add.

Kanban board tab configuration

Q & A

Q: How can I get multiple events from my TFS project to show up in my Teams channel?

A: Create a new subscription for each type of event you want. For example, if you want to see build failures and new work items in your Teams channel, create two additional subscriptions.

Q: I don't see my VSTS account when trying to add a Kanban board tab to Teams.

A: Only Kanban boards within VSTS accounts in the same organization (Azure Active Directory tenant) as your Microsoft Teams account can be configured. This means even if the sign-in email address is the same for VSTS and Teams, they may be backed by different tenants and therefore cannot be linked.