Export (0) Print
Expand All

Find, Link and View Source Code Files Associated with a Work Item (Team Explorer Everywhere)

Visual Studio 2010

If your team uses Team Foundation version control, you can associate version control changes with a particular work item by creating a link between them. This strategy allows other members of your team to determine what changes have been made in the source code to address a work item.

In this topic

NoteNote

In Team Explorer Everywhere 2010, you cannot open a linked source file from a link in a work item. The open button is unavailable when you click a link to a versioned item.

Required Permissions

To perform these procedures, you must be a member of the Contributors group or your View work items in this node, Edit work items in this node, Read, Check In, and Check Out permissions must be set to Allow. For more information, see the following page on the Microsoft Web site: Team Foundation Server Permissions.

To link a work item to a source code file

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

  2. Open the work item that you want to link to the source code, and then click the tab for managing links.

    NoteNote

    The name of the tab might be Links, All links, or Implementation. The name of the tab is determined by the work item definition.

  3. Click Link to.

  4. In the Add Link dialog box, in the Link type list, click 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, click Latest Version to link to the most recent version of the file at all times.

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

  8. Click OK.

  9. On the File menu, click Save or press Ctrl+S.

To find a source code file to link to a work item

  1. Check in the source code file to Team Foundation version control, and open the work item that relates to the file.

  2. Complete the required fields at the top of the form.

    For example, you might be resolving the work item at the same time.

  3. Click the tab for managing links, and then click Link to.

    NoteNote

    The name of the tab might be Links, All links, or Implementation. The name of the tab is determined by the work item definition.

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

  5. Under Link Details, click Browse.

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

  7. Under Link to, specify 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 the changeset contains.

  8. (Optional) Under Comment, type information that is important about this particular link.

  9. Click OK.

  10. On the File menu, click Save or press Ctrl+S.

Community Additions

ADD
Show:
© 2014 Microsoft