> ## Documentation Index
> Fetch the complete documentation index at: https://docs.incident.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Syncing incidents with Azure DevOps

[incident.io](http://incident.io/) allows you to automatically track your incidents in Azure DevOps by creating and maintaining "Issue" work items.

This is helpful if Azure DevOps is your source of truth, and you need everything to be in one place.

Each issue will be updated in real-time with the latest title and description, and comments will be added for each incident update. We will also sync any comments added to your Azure DevOps work item back into incident.io.

You can also use templates and conditions to create different issues in different projects depending on custom fields and incident types within incident.io. For example:

* Create issues in your Security project where Incident Type = Security
* Create issues in your Engineering project where Incident Type = Production

## Getting started

First, you'll need to enable the integration. Ensure you are logged in as an Azure DevOps user with access to the relevant projects.

Navigate to Settings > Integrations, locate Azure DevOps via the search bar, and click "Connect".

A modal will appear. Click "Sign in with Microsoft" to be redirected to Microsoft for the authorisation flow.

<img src="https://mintcdn.com/incidentio-18bb4170/RywJbdur7X45Tv2e/images/help-centre/syncing-incidents-to-azure-devops/screenshot-1.png?fit=max&auto=format&n=RywJbdur7X45Tv2e&q=85&s=004633d34c70df7af6bf406e1ee69e29" alt="" width="1054" height="670" data-path="images/help-centre/syncing-incidents-to-azure-devops/screenshot-1.png" />

<Info>
  We do not support authentication via Azure service accounts due to differences in API behavior. We suggest creating a personal account under a shared "service" email for authentication purposes
</Info>

## Service Hooks

1. Go to your project, select **Project settings**, and then select **Service hooks**.

<img src="https://mintcdn.com/incidentio-18bb4170/TBdaveUAr1Q7-4Y5/images/help-centre/syncing-incidents-to-azure-devops/screenshot-2.png?fit=max&auto=format&n=TBdaveUAr1Q7-4Y5&q=85&s=d81558e3198542e9c6d2bb2e104ef78c" alt="" width="1054" height="670" data-path="images/help-centre/syncing-incidents-to-azure-devops/screenshot-2.png" />

2. Select **Create subscription**.

<img src="https://mintcdn.com/incidentio-18bb4170/TBdaveUAr1Q7-4Y5/images/help-centre/syncing-incidents-to-azure-devops/screenshot-3.png?fit=max&auto=format&n=TBdaveUAr1Q7-4Y5&q=85&s=f4545c4e3c7d30ae87a1c696d22ed143" alt="" width="1002" height="1508" data-path="images/help-centre/syncing-incidents-to-azure-devops/screenshot-3.png" />

3. Select **Web Hooks** and then click **next**

<img src="https://mintcdn.com/incidentio-18bb4170/TBdaveUAr1Q7-4Y5/images/help-centre/syncing-incidents-to-azure-devops/screenshot-4.png?fit=max&auto=format&n=TBdaveUAr1Q7-4Y5&q=85&s=e4fa77a21045c3ce188beded4236d76a" alt="" width="1384" height="542" data-path="images/help-centre/syncing-incidents-to-azure-devops/screenshot-4.png" />

4. Change the trigger to be **Work item updated** and then click **next**

<img src="https://mintcdn.com/incidentio-18bb4170/TBdaveUAr1Q7-4Y5/images/help-centre/syncing-incidents-to-azure-devops/screenshot-5.png?fit=max&auto=format&n=TBdaveUAr1Q7-4Y5&q=85&s=c8f0b3a019ef3c5565ce41fdcaa2bb7b" alt="" width="1200" height="1204" data-path="images/help-centre/syncing-incidents-to-azure-devops/screenshot-5.png" />

5. Copy the service hooks details from the dashboard into the service hook config

<img src="https://mintcdn.com/incidentio-18bb4170/TBdaveUAr1Q7-4Y5/images/help-centre/syncing-incidents-to-azure-devops/screenshot-6.png?fit=max&auto=format&n=TBdaveUAr1Q7-4Y5&q=85&s=92cf9e763671a3c354bb9e043f5568d7" alt="" width="1208" height="1212" data-path="images/help-centre/syncing-incidents-to-azure-devops/screenshot-6.png" />

<img src="https://mintcdn.com/incidentio-18bb4170/TBdaveUAr1Q7-4Y5/images/help-centre/syncing-incidents-to-azure-devops/screenshot-7.png?fit=max&auto=format&n=TBdaveUAr1Q7-4Y5&q=85&s=530f8e83aa556a11f2e5b8180a216618" alt="" width="1378" height="1496" data-path="images/help-centre/syncing-incidents-to-azure-devops/screenshot-7.png" />

6. Click **Test** and you should see a success in the dashboard

<img src="https://mintcdn.com/incidentio-18bb4170/TBdaveUAr1Q7-4Y5/images/help-centre/syncing-incidents-to-azure-devops/screenshot-8.png?fit=max&auto=format&n=TBdaveUAr1Q7-4Y5&q=85&s=9a09f9a7008151b28f2f119255008661" alt="" width="1204" height="1214" data-path="images/help-centre/syncing-incidents-to-azure-devops/screenshot-8.png" />

7. Click **Finish** in azure devops to complete the setup

<img src="https://mintcdn.com/incidentio-18bb4170/TBdaveUAr1Q7-4Y5/images/help-centre/syncing-incidents-to-azure-devops/screenshot-9.png?fit=max&auto=format&n=TBdaveUAr1Q7-4Y5&q=85&s=d89d5b087868696892f9e0bee89aad9f" alt="" width="1358" height="1470" data-path="images/help-centre/syncing-incidents-to-azure-devops/screenshot-9.png" />

## Creating a template

Next, we need to define what the contents of each issue should be.

Navigate to Settings > Incident Tickets, and click "+ Add a new template"

The issue template determines which project the issue will be created in, and who it should be assigned to. It also allows for customisation of the issue title and description, using variables and custom fields on the incident.

<img src="https://mintcdn.com/incidentio-18bb4170/TBdaveUAr1Q7-4Y5/images/help-centre/syncing-incidents-to-azure-devops/screenshot-10.png?fit=max&auto=format&n=TBdaveUAr1Q7-4Y5&q=85&s=5a9815f986de8541b39482fbc4e8f00d" alt="" width="2424" height="548" data-path="images/help-centre/syncing-incidents-to-azure-devops/screenshot-10.png" />

## Enabling the feature

Once your template has been configured, use the toggle to 'Create tickets for incidents'.

<img src="https://mintcdn.com/incidentio-18bb4170/TBdaveUAr1Q7-4Y5/images/help-centre/syncing-incidents-to-azure-devops/screenshot-11.png?fit=max&auto=format&n=TBdaveUAr1Q7-4Y5&q=85&s=ae7081caf893cd1af17c147474f30089" alt="" width="470" height="589" data-path="images/help-centre/syncing-incidents-to-azure-devops/screenshot-11.png" />

If there are no conditions specified we will use the first template in the list and create a ticket for all new, active incidents.

Conditions can be used to control which template should be used for any given incident. For example, incidents of type "Security" may need to be directed to a security-specific Azure DevOps project.

## Private incidents

If you wish to create tickets for private incidents, then tick this checkbox.

<img src="https://mintcdn.com/incidentio-18bb4170/TBdaveUAr1Q7-4Y5/images/help-centre/syncing-incidents-to-azure-devops/screenshot-12.png?fit=max&auto=format&n=TBdaveUAr1Q7-4Y5&q=85&s=1d7f3c3807f9fcd2060ed7e53d22e7d3" alt="" width="840" height="488" data-path="images/help-centre/syncing-incidents-to-azure-devops/screenshot-12.png" />

Note: Anyone with access to the chosen Azure DevOps project will be able to see these tickets.
