Use Azure Boards in Microsoft Teams
Azure DevOps Services
This article describes how to use the Azure Boards and Azure DevOps apps for Microsoft Teams to create and monitor Azure Boards work items from your Teams channels.
Note
This feature is only available on Azure DevOps Services. Typically, new features are introduced in the cloud service first, and then made available on-premises in the next major version or update of Azure DevOps Server. For more information, see Azure DevOps Feature Timeline.
By using the Azure Boards app for Microsoft Teams, you can:
- Set up and manage subscriptions to create and manage work items and work item events in your Teams channels.
- Create work items from conversations in a channel.
- Search and share work items with other channels using the messaging extension.
- View work item previews from URLs.
Note
Azure Boards notifications aren't supported inside Teams chat or direct messages.
In this article, you learn how to:
- Add the Azure Boards app to your team in Microsoft Teams.
- Link your Azure Boards project to the Azure Boards app.
- Set up subscriptions to work item events in your Teams channel.
- Create work items from your Teams channel.
- Monitor work item activity in your Teams channel.
Note
The Azure Boards app for Microsoft Teams isn't supported for O365 Government Community Cloud (GCC) customers that use an Azure Commercial subscription in conjunction with a GCC tenant.
Prerequisites
- Access to a Team and channel in Microsoft Teams where you can install an app.
- Project Administrator or Team Administrator role in an Azure DevOps project.
- Third party application access via OAuth enabled in Azure DevOps organizational settings.
For more information, see the following resources:
- Create a project
- Change project-level permissions
- Add team administrator
- Change application access policies for your organization
Add the Azure Boards app to Teams
You can add the Azure Boards app to your Teams channels.
In Microsoft Teams, select Apps, search for Azure Boards, and then select Azure Boards.
Select the dropdown arrow next to Open, and select Add to a team.
Select or enter your team name, and then select Set up a bot.
After the app installs, you see a welcome message in the Teams conversation pane.
Azure Pipelines app commands
You can use the following @azure boards
commands to interact with the Azure Boards app in your Teams channel.
Command | Functionality |
---|---|
@azure boards sign in | Sign in to your Azure Boards organization. |
@azure boards sign out | Sign out from your Azure Boards organization. |
@azure boards link <project url> | Link a project to this channel to create work items and receive notifications. |
@azure boards unlink | Unlink a project from this channel. |
@azure boards subscriptions | Add or remove subscriptions for this channel. |
@azure boards addAreapath <area path> | Add an area path from your project to this channel. |
@azure boards feedback | Report a problem or suggest a feature. |
@azure boards help | Get help on the commands. |
Link your Azure Boards project to the app
To use the app, sign in to Azure Boards and link your Azure Boards project to your Teams channel.
In the Teams conversation pane, enter
@azure boards signin
.Select Sign in and complete authentication to Azure Boards. Select Sign in with different email if your Microsoft Teams and Azure Boards are in different tenants.
Use the
@azure boards link
command to link to your Azure DevOps project URL. For example:@azure boards link https://dev.azure.com/myorg/myproject/
Select the Add subscription button in the linked project notification to start monitoring your project.
Set up subscriptions
After your project is linked, begin monitoring project work items by selecting the Add subscription button. You can add more subscriptions anytime by using the @azure boards subscriptions
command.
Under Choose event, select the event you want to subscribe to and select Next.
Under Choose filters, select the Area path, Work item type, and optionally specify Tags or a specific string to filter on, and then select Submit.
Add area paths
Area paths that have subscriptions in the channel, recently accessed area paths, and area paths that you add by using the @azure boards addAreapath
command appear in the Area path dropdown menu when you create a subscription. If the area path that your team works on doesn't appear in the dropdown menu, you can add it so that it's always available for creating work items and subscriptions. This feature is especially useful for teams with more than 100 area paths in their project.
Use the @azure boards addAreapath
command to add area paths from your project to the Teams channel. For example:
@azure boards addAreapath 'VMdemo\Area4'
You get a success message.
If you choose the project name as your area path, you get notifications for all the area paths in the project.
Create work items
You can use the Azure Boards app to create work items from your channel by using a message action.
In any message in the channel, select the More actions ellipse in the actions panel, and then select Create work item.
Select the type of work item you want to create, and select Next.
Enter a Title and select an Area path for the work item.
The text of the message becomes the work item Description or Repro Steps, depending on work item type, or you can edit this text. Select Create.
The new work item appears in Azure Boards and contains a link back to the Teams item that generated the work item.
Manage Azure Boards subscriptions
To view, add, and remove subscriptions for a channel, use the @azure boards subscriptions
command. This command lists all the current subscriptions for the channel. You can add new subscriptions and remove existing ones. When you add a subscription, you can customize notifications by using filters.
Note
Team Administrators can't remove or modify subscriptions that Project Administrators created.
Use the compose extension
To help you search for and share work items, the Azure Boards app for Microsoft Teams supports the compose extension. You can search for work items by work item ID, title, or supported functional command. For a list of supported commands, see Functional work item search.
To use the compose extension, you must be signed in to the Azure Boards project in the Teams channel. Select the + symbol in the message field, select Azure Boards, and then search for a work item. You can also select Create work item to create a new work item.
Preview work items
To support collaboration around work items you discuss in a channel, the Azure Boards app displays a preview of work items you reference. When you paste in a work item URL or select a work item from the compose extension, the app shows a preview similar to the following image. This URL unfurling feature works for all channels in the team.
Unlink a project from a channel
A Teams channel can link to only one Azure Boards project at a time. To link to a different project, you must first unlink the current project by using @azure boards unlink
.
Unlinking a project deletes all the project subscriptions and added area paths from the channel. If the channel has no subscriptions, any user can unlink a project. If the channel has subscriptions, only Project Administrators can unlink the project.
Expand and collapse threads
A Teams channel collapses posts in threads to logically link and reduce related posts in the channel. All replies to a particular post are linked together.
To expand the thread, select the compacted thread link.
To return to the channel and collapse the thread, select Go to channel.
Configure Azure DevOps tabs
To bring your project dashboard or Kanban board into Teams, you can install the Azure DevOps app in a tab in your Teams channel. The Azure DevOps app lets you insert content from the app in messages, and get notifications from the app in your channels.
In Teams, select the + symbol on the top navigation of your channel or select Apps from the left menu.
Search for if necessary, and then select Azure DevOps.
Select and sign in to your Azure DevOps organization.
On the Azure DevOps screen, select a Project, and whether to add a Dashboard or a Kanban board to the tab. Select other configurations depending on your choice, and select whether you want to post to the channel about adding the tab.
Select Save. The new tab and board appear in your channel.
Connect different tenants
If you use different emails or tenants for Microsoft Teams and Azure DevOps, follow these steps to sign in and connect based on your settings.
Microsoft Teams | Azure DevOps | Sign in action |
---|---|---|
email1@abc.com (tenant1) | email1@abc.com (tenant1) | Select Sign in |
email1@abc.com (tenant1) | email2@abc.com (tenant2) | 1. Sign in to Azure DevOps. 2. In the same browser, start a new tab and go to https://teams.microsoft.com/. 3. Run the sign in command and select Sign in. |
email1@abc.com (tenant1) | email2@pqr.com (tenant2) | 1. Select Sign in with different email address. 2. In the email ID picker, use the email2 to sign in. |
email1@abc.com (tenant1) | email2@pqr.com (nondefault tenant3) | Not supported. |
Troubleshoot authentication issues
If you receive the error Configuration failed. Please make sure that the organization '{organization name}' exists and that you have sufficient permissions, try the following steps to resolve the error.
In the same browser, start a new tab and sign in to
https://teams.microsoft.com/
.In this tab, go to the channel where the Azure Boards app for Microsoft Teams is installed and run the
@azure boards signout
command and then the@azure boards signin
command.Select the Sign in button, and complete the sign-in process. Ensure that the directory shown is the same one you chose in the previous step.
If these steps don't resolve your authentication issue, reach out to the Developer Community.