Skip to content

Email when a work item is deleted in Azure DevOps

  • Azure DevOps
  • Automation
  • Notifications
  • Email
  • Delete
Email when a work item is deleted flow overview
Overview of the flow for emailing when a work item is deleted.

When a work item is deleted, email the id, title, and who changed it in Azure DevOps.

You'll need to specify the email recipients before enabling this automation. The email includes the work item's ID, title, and the person who deleted it.

Prerequisite: Install Automations App on your Azure DevOps organization

Create an automation from the Email when a work item is deleted template, or start from scratch
Go to Project → Automations → Create automation from template Email when a work item is deleted or Start from scratch.
Trigger

Trigger — Work Item Delete

This trigger activates the automation when any work item is deleted in Azure DevOps. It does not filter by work item type, so it applies to all deletions.

Configured in this template

  • Work item types: all (no filter)

You can customize

  • Limit the trigger to specific work item types by adjusting the filter settings.
Email when a work item is deleted trigger
Trigger setup for detecting deleted work items.
Action

Action — Send customized email

This action sends an HTML email through the platform mailer. The email contains the ID and title of the deleted work item, as well as the person who deleted it. A link to the work item in Boards is included, though it may be unavailable after deletion.

Configured in this template

  • To: (empty — add recipients)
  • From: notifications@documentero.com
  • Subject: `Deleted: {trigger.Title}`
  • Body (HTML): `<p>Work item #{trigger.Id} {trigger.Title} was deleted by {trigger.ChangedBy}.</p><p><a href="{trigger.Url}">Open in Boards</a> (may be unavailable after delete).</p>`

You can customize

  • Add multiple recipients by separating email addresses with commas.
  • Modify the email subject to include additional context or details.
  • Customize the body of the email to include more information or a different format.
Email when a work item is deleted action 1
Configuration of the email action for deleted work items.

Full automation

Email when a work item is deleted full automation
Complete view of the automation flow for sending emails when work items are deleted.

Common questions

How do I email when a work item is deleted in Azure DevOps?
When a work item is deleted, email the id, title, and who changed it in Azure DevOps. Use the Email when a work item is deleted template in Documentero Automations: open Templates, pick this flow, fill the required fields, and enable it.
What fields are required to enable this automation?
You must specify the recipients in the 'To' field of the Send customized email action.
Can I change the work item types that trigger this automation?
Yes, you can modify the trigger to filter specific work item types instead of applying to all.
How can I test this automation?
To test, delete a work item in Azure DevOps. The automation will trigger and send an email.
Will the Boards link in the email work after deletion?
The link may lead to a 404 error if the work item is no longer available in Boards.

Visual Studio Marketplace

Automations

Documentero · Preview

Automate Azure DevOps workflows with triggers, actions, conditions, and scheduled rules.

Get it free