How to: Find Source Code Files to Link to Work Items
When you check in the files that you have changed to complete a work item, you may want to add a link to the files involved in completing the work item. If you are using Team Foundation version control, Team Foundation lets you search for source code files and link them to 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 find a source code file to link to a work item
Check in the source code file to Team Foundation version control.
Open the work item related to the source code file.
Complete the required fields at the top of the form. For example, you might be resolving the work item at the same time.
On the Links tab at the bottom of the form, click Add.
In the Add Link dialog box, under Link Type, select Versioned Item.
Under Link Details, click Browse.
In the Browse dialog box, locate the source file that you want to link to, and then click OK.
Under Link to, select the version of the file.
Latest Version Links the work item to the most current version of the source code file.
Changeset Lets you specify a number for a changeset that links the work item to the specific version of the source code file that is contained in the changeset.
Under Comment, enter information that is important about this particular link.
Click OK.
Save the work item to save your changes.