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

  1. Check in the source code file to Team Foundation version control.

  2. Open the work item related to the source code file.

  3. Complete the required fields at the top of the form. For example, you might be resolving the work item at the same time.

  4. On the Links tab at the bottom of the form, click Add.

  5. In the Add Link dialog box, under Link Type, select Versioned Item.

  6. Under Link Details, click Browse.

  7. In the Browse dialog box, locate the source file that you want to link to, and then click OK.

  8. 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.

  9. Under Comment, enter information that is important about this particular link.

  10. Click OK.

  11. Save the work item to save your changes.

Community Additions

ADD
Show: