Add tags to work items to categorize and filter lists
Visual Studio Team Services | Visual Studio 2015 | Previous versions
Tagging work items helps you quickly filter the product backlog or a work item query by categories that you define.
From the Team Explorer plug-in for Eclipse, you can filter queries by tags, however, you can’t add or modify tags from the user interface. You must use the web portal to add and modify tags.
By default, all Contributors are granted permissions to create and modify tags.
Add and assign tags
From the web portal, open a work item and add a tag. Or, select from the list of previously assigned tags.
To add several tags at one time, type a comma between tags. Tags are case sensitive.
Tags that appear in the tag bar are already assigned to the work item. To unassign a tag, simply choose the x on the tag,.
Bulk add or remove tags
You can bulk update work items to add or remove tags.
Feature availability: The bulk modify tags feature from the web portal is currently only available when you connect to a VSTeam Services account.
When connecting to an On-premises TFS: Use Excel to bulk modify tags.
Bulk modify of tags from the Visual Studio client isn't supported.
Query based on tags
To query work items based on tags, add a clause for each tag you want to use to support your query.
For example, here we query for all work items that are tagged either
Show tags in your backlog or query results
Open Column Options to add the Tags field to the product backlog or a work item query.
All tags that are assigned to the listed work items appear.
Filter lists using tags
From the web portal, you can filter backlogs, boards, and query results.
Turn on filtering and choose a tag.
The list refreshes. Only those work items with the selected tag are displayed. Filtering the list disables add-a-backlog-item panel, stack ranking, and forecasting.
To apply a sub-filter, choose another tag. You filter successively by choosing from the set of tags that appear in the filter tag bar. To start your filter process over, choose All to show all tags.
To show all items, choose All or choose the Tag filter image on backlog and queries pages filter icon to turn filtering off.
Tags are a shared resource, they're associated with a team project and not a team. If your team project contains multiple teams, all teams will add to and work from the same set of tags.
- Using queries
- Show tags on cards
- Bulk modify work items from the web portal
- Bulk modify work items from Excel
Filter backlogs or boards using tags
If you've added tags to your backlog or board items, you can filter your backlog list using the tag filter.
To filter the Kanban board using tags, make sure that you first customize cards to Show tags.
Feature availability: This feature is currently supported only on the Kanban board when you connect to VS Team Services or to an on-premises application server that's been upgraded to TFS 2015 Update 1.
To learn more about filtering, see Filter your backlog or board.
Limits on number of tags
While no hard limit exists, creating more than 100K tags for a team project collection can negatively impact performance. Also, the auto-complete dropdown menu for the tag control displays a maximum of 200 tags. When more than 200 tags are defined, begin typing to cause the tag control to display relevant tags.
You can’t assign more than 256 tags to a work item. And, you can’t add more than 32 new tags at a time or you'll receive the following message:
TF401243: Failed to save work item because too many new tags were added to the work item.
Simply save the work item with the tags (32 or less) that you've added, and then you can add more tags.
Limit queries to fewer than 25 tags. More than that and the query will likely time out.
Delete or remove tags
You can’t delete a tag itself. However, if you delete a tag from all work items to which it’s currently assigned, the system will delete the tag. The system automatically deletes unassigned tags after 3 days of disuse.
If you misspell a tag, don't assign the misspelled tag to any work item and the system will automatically delete it within 3 days.
Add tags to the default column view on the product backlog
Modify the ProcessConfiguration file to include
System.Tags in the set of fields to display. See Process configuration XML element reference.
Add or modify tags using an API
You can use
WorkItem.Fields or Work Item Field Explorer (provided with Team Foundation Server Power Tools) to determine if the Tags field is editable (IsEditable).