Use #ID to link to work items

VSTS | TFS 2018 | TFS 2017 | TFS 2015.1

Use the #ID control to quickly link objects to work items.

Note

The #ID special control feature is available from TFS 2015.1 and later versions.

When leaving a code comment in a pull request, you can type # to trigger the #ID work item picker. The picker displays a list of 50 work items that you have recently modified or that are assigned to you.

You can narrow the list of suggested work items by entering keywords that match the work item type, ID, or title, or you can enter the exact work item ID.

Pull request comment area, type # to invoke work item control

To further filter the list, continue entering keywords until you've found a match. You can enter up to five keywords.

You can also use the #ID control in pull request discussions, commit comments, changeset comments, and shelveset comments.

Note

Requires TFS 2015.2 or a later version.

You can use the #ID control to link to a work item from within a Wiki page.

To learn more about the built-in wiki, see Add & edit wiki pages.