Create or Delete a File Attachment in a Work Item

To share information that is relevant to a work item, you can attach files, such as an email thread, document, image, log file, or other file type, to the work item. After you attach the file, you can view, delete, and save it to your local workspace.

You can add and delete file attachments by using the following Team Foundation clients: Team Web Access, Team Explorer, Office Excel, and Office Project. An individual file can be attached to only 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. See Manage My Profile and View My 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, and then choose the Attachments tab.

      Attachments control

      Example of attachments control

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

      Choose the File Attachments or Attachments tab.

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

    • Drag a file into the attachment area.

    • Choose Add.

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

  3. To remove an attached file from a work item, choose the file, choose Delete Item Delete, and then choose OK.

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

    • (For Team Web Access or Team Explorer) choose 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, choose Publish, and then choose 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

Link Work Items and Objects to Support Traceability