Create or Delete a File Attachment in a Work Item

To share information that is relevant to the completion of a work item, you can attach a file to the work item. For example, you can attach, open, delete, and save files from work items, such as an e-mail thread, document, image, log file, or other file type.

You can add and delete file attachments by using the following Team Foundation clients: Team Web Access, Team Explorer, Office Excel, and Office Project. You can only attach files to one work item at a time. All file attachments are stored in the work item database for Team Foundation. When you add or delete a file attachment, your changes are applied to that database when you are working in Office Excel or Office Project. When you are working in Team Web Access or Team Explorer, your changes are applied to the database when you save the work item.

Note

If you are working in Office Excel or Office Project and you are not connected to Team Foundation Server, you cannot add or delete file attachments.

Required Permissions

To perform these procedures, you must be a member of the Contributors group or have your View work items in this node, and your Edit work items in this node permissions set to Allow. For more information, see Team Foundation Server Permissions.

To create or delete a file attachment in a work item

  1. Open or select the work item.

    • In Team Web Access or Team Explorer, open the work item form for editing, and then click the tab for managing links.

      Note

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

    • From Office Excel or Office Project, select the work item row, and then on the Team tab or menu, click Links and Attachments.

  2. Click the File Attachments or Attachments tab.

  3. To attach a file to the work item, follow one of these steps:

    • Drag a file into the attachment area.

    • Click Add or Click to add a new attachment.

      In the Attachment box, type or browse to the name of the file that you want to attach. You can optionally type additional information about the attachment in the Comment box. Click OK.

  4. To remove an attached file from a work item, perform one of the following steps:

    • In Team Web Access, next to the file that you want to delete, click Delete,or, to delete all files, click Delete All, and then click Yes.

    • In Team Explorer, click the file, click Delete, and then click OK.

    • In Team Explorer, select each file that you want to delete, right-click Delete, and then click OK. You can press the SHIFT key while clicking to select a range of work items, or press the CTRL key while clicking to select multiple work items. 

  5. To save or publish your changes, perform one of the following steps:

    • (For Team Web Access or Team Explorer) Click Save, or Save & Close, or Save Work Item.

    • (For Office Excel or Office Project) In the View/Edit Work Item Links and Attachments dialog box, click Publish, and then click Close

See Also

Tasks

Add or Delete a Hyperlink in a Work Item

Open or Save a File Attached to a Work Item

Concepts

Working in Microsoft Excel and Microsoft Project Connected to Team Foundation Server

Other Resources

Creating Relationships Between Work Items and Other Resources