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.
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.
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.
Save the work item to save your changes.