work_item field, so you can use them to power alert attributes and routing.
The Azure DevOps alert source is rolling out gradually. If you don’t see it when you create a source, contact support@incident.io.
Instructions
Before you start, connect the Azure DevOps integration. To copy the service hook password from incident.io, you need permission to manage organization settings.- Head over to the Alerts section in your incident.io dashboard.
- Select the Sources tab at the top of the page.
- Press the Create source button.
- Search for Azure DevOps and click Continue to create the alert source.
- Select the Azure DevOps projects that should send work items to this source. Projects come from your catalog, so a newly connected integration can take a few minutes to list them.
- In Azure DevOps, open one of those projects, go to Project settings → Service hooks, and click Create subscription.
- Select Web Hooks, then click Next.
- Set the trigger to Work item created. Add filters if you only want some work items to alert, for example by work item type or area path. Click Next.
- Paste the URL, Basic authentication username, and Basic authentication password from the incident.io setup page, then click Test and Finish.
- Repeat steps 6 to 9 with the Work item updated trigger, then repeat both service hooks for every project you selected.
- Create or update a work item in one of the selected projects. If it’s set up correctly, the alert appears in incident.io.
What each work item event does
Alerts are deduplicated on the work item ID, so you’re paged once per work item however often it changes. A work item counts as closed once Azure DevOps records it as completed, resolved, or closed, depending on your project’s process template.
Resolving the alert doesn’t resolve an incident on its own. For triage incidents, turn on Decline triage incidents if the linked alerts are resolved on the alert route. For live incidents, trigger a workflow on alert resolution.
Route alerts by team
The recommended approach is to tag each work item with an identifier for its team. Tags arrive as one semicolon-separated string atwork_item.tags, so split it on ; into a Team alert attribute. Azure DevOps tags can’t contain commas or semicolons.
Alternatively, give each team its own area path and file work items under it. Add the full area path, for example Shop\Payments, as an alias on the team’s catalog entry, then read work_item.area_path into the Team attribute. See routing alerts to teams for what to do with the attribute once it’s set.
The work_item field also carries the work item’s type, state, priority, severity, iteration path, and creator. Custom fields are there too, with dots in their names replaced by underscores, so Custom.OwningTeam becomes work_item.Custom_OwningTeam. Empty fields are left out, and values longer than 4 KB are cut short.