Export (0) Print
Expand All

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

  1. Check in the source file to your source control program.

  2. Open a work item and then click the Links tab.

  3. Click Add.

  4. In the Add Link dialog box, in the Link type list, select Versioned Item.

  5. In the Item box, type the path and file name of the source file. Or browse to the source file by clicking Browse.

  6. In the Link to list, select Latest Version to link to the latest version of the file at all times.

  7. In the Comment box, enter a comment that describes why you are linking the work item to this source code file.

  8. Click OK.

  9. Save the work item to save your changes.

To view the changesets or source code file linked to a work item

  1. Open a work item and then click the Links tab.

  2. Select the changeset or source file link that you want to view.

  3. Click Open. How the link opens depends on the type of file that you have selected.

Community Additions

© 2014 Microsoft