How to: Link Work Items to Source Code Files
If you are using Team Foundation version control, you can associate version control changes to a particular work item. This allows other members of your team to see what changes have been made in the source code to address a work item.
Required Permissions
To perform these procedures, you must be a member of the Contributors group or have the View work items in this node, Edit work items in this node, Read, Check In, and Check Out permissions set to Allow. For more information, see Team Foundation Server Permissions.
To link a work item to a source code file
Check in the source file to your source control program.
Open a work item and then click the Links tab.
Click Add.
In the Add Link dialog box, in the Link type list, select Versioned Item.
In the Item box, type the path and file name of the source file. Or browse to the source file by clicking Browse.
In the Link to list, select Latest Version to link to the latest version of the file at all times.
In the Comment box, enter a comment that describes why you are linking the work item to this source code file.
Click OK.
Save the work item to save your changes.
Viewing Linked Changesets and Source Code Files
To view the changesets or source code file linked to a work item
Open a work item and then click the Links tab.
Select the changeset or source file link that you want to view.
Click Open. How the link opens depends on the type of file that you have selected.
See Also
Tasks
How to: Link Work Items to Changesets