Manage work item attachments

Azure DevOps Services | Azure DevOps Server 2022 - Azure DevOps Server 2019

Visual Studio 2019 | Visual Studio 2022

Attachments enhance work items by enabling you to share essential information with your team. You can attach files, images, and links directly to work items, facilitating better collaboration and documentation. Each work item can include up to 100 attachments, with each file limited to 60 MB. This article provides guidance on managing attachments within Azure DevOps.

Prerequisites

  • Permissions:

    • To view, follow, and edit work items, have View work items in this node and Edit work items in this node permissions set to Allow. By default, the Contributors group has these permissions. For more information, see Set work tracking permissions.
  • To add tags to work items, have the project-level Create new tag definition permission set to Allow. By default, the Contributors group has this permission.

  • Access levels:

    • Be a project member.
    • To add new tags to work items or to view or follow pull requests, have at least Basic access.
    • To view or follow work items, have at least Stakeholder access. For more information, see About access levels.
    • All project members, including those in the Readers group, can send emails containing work items.

    Note

    • Provide Stakeholder access to members who want to contribute to the discussion and review progress. These are typically members who don't contribute to code, but want to view work items, backlogs, boards, and dashboards.
    • By default, all Contributors and Stakeholders in public projects can add new and existing tags. In private projects, Stakeholders can only add existing tags. To control the ability to create new tags, set the Create tag definition permission at the project level. For more information, see Change project-level permissions.
  • Permanent deletion permissions: To permanently delete attachments, have the Permanently delete work items permission set to Allow.

Manage attachments through the web portal

Do the following steps to manage attachments through the web portal:

  1. Go to the desired work item and select the Attachments tab.

    Screenshot showing highlighted Attachments button in work item.

  2. Use the Collapse/Expand button to toggle the visibility of attachments.

    Screenshot showing highlighted expand or collapse attachments button in work item.

  3. Switch between List and Grid views by selecting the corresponding icon.

    Screenshot showing list and grid view buttons.

  4. After you add an attachment, hover over the work item to access the more actions More Actions Icon menu. This menu allows you to do the following tasks:

Tips

  • Bulk management: To manage multiple attachments simultaneously, consider using bulk actions available in the Attachments tab.
  • Permissions: Ensure you have the appropriate permissions to add, edit, or delete attachments. Project administrators typically have full access, while other roles might have limited permissions.
  • File size and type: Be mindful of the attachment size limits (up to 60 MB per file) and ensure that the file types you upload are supported by Azure DevOps.
  1. Go to the desired work item and select the Attachments tab.

    Screenshot of highlighted Attachments button in work item.

  2. Choose a list or grid view of attachments. The grid view provides a thumbnail preview of the attachment.

    Screenshot showing list and grid view buttons.

  3. After you add an attachment, hover over the work item to access the more actions More Actions Icon menu. This menu allows you to do the following tasks:

Add attachment

To add an attachment to a work item, do the following steps:

  1. From your work item, select Attachments > Add attachment.

    Screenshot showing highlighted Attachments button.

  2. Select the file > Open > Save.

The attachment gets added to the work item. To add more attachments, select + Add attachment.

Add and edit comment

To add or edit a comment for an attachment, do the following steps:

  1. Hover over the attachment and select more actions > Edit comment.

    Screenshot showing add comment to attachment flow.

  2. Add or edit your comment and select Save.

  1. Select or hover over the attachment and select more actions > Edit comment.

    Screenshot showing add comment to attachment flow.

  2. Edit your comment and select Save.

To copy the link to an attachment:

Hover over the attachment and select more actions > Copy attachment link.

Download attachment

To download an attachment to your browser's download directory:

Hover over the attachment and select more actions > Edit comment.

Select or hover over the attachment and select more actions > Download attachment.

Delete attachment

To delete an attachment, do the following steps:

  1. Hover over the attachment and select more actions > Delete attachment.

  2. Select Delete to confirm you want to delete the attachment.

    Screenshot showing Delete button for confirming delete action.

  1. Select or hover over the attachment and select more actions > Delete attachment.

  2. Select Delete to confirm you want to delete the attachment.

    Screenshot showing Delete button for confirming delete action.

The deleted attachment can't be restored and is permanently removed after 28 days. In the meantime, if you have permissions, you can permanently delete it.

The deleted attachment can't be restored and is permanently removed after 28 days. In the meantime, if you have permissions, you can permanently delete it.

Permanently delete attachment

This action is typically reserved for situations requiring immediate removal, such as when files are infected. Otherwise, deleted attachments are automatically removed within 28 days.

  1. From your work item, select the Attachments tab.

  2. Select more actions > Permanently delete attachment.

    Screenshot showing permanently delete attachment flow.

  3. Select Delete to confirm you want to permanently delete the attachment.

    Screenshot showing Delete button for confirming permanent delete action.

The attachment is permanently deleted and isn't accessible from any other links.

Note

This feature is only available in New Boards Hub.