Export Azure DevOps to Excel: A Step-by-Step Guide

Exporting data from Azure DevOps to Excel can be a breeze with the right tools and methods. Whether you're looking to analyze work items, track sprint progress, or generate reports, Excel can provide a familiar and powerful interface for data manipulation and visualization.

Update Work Items with Templates in Azure Boards - Azure Boards
Update Work Items with Templates in Azure Boards - Azure Boards

Before we dive into the steps, let's ensure you have the necessary prerequisites. You'll need an Azure DevOps account with appropriate permissions, and Excel installed on your machine. Additionally, you might want to have a basic understanding of Excel's data handling capabilities.

50 Things You Can Do With Excel Power Query (Get & Transform)
50 Things You Can Do With Excel Power Query (Get & Transform)

Exporting Work Items from Azure DevOps

Azure DevOps provides a built-in feature to export work items to Excel. This is particularly useful when you want to analyze work item data, track progress, or generate reports.

the azure architecture poster is shown in blue and white, with information about it's features
the azure architecture poster is shown in blue and white, with information about it's features

To export work items, follow these steps:

Using the Web Interface

Chandresh Desai on LinkedIn: #cloud #devops #azure #kubernetes #cloudairy
Chandresh Desai on LinkedIn: #cloud #devops #azure #kubernetes #cloudairy

1. Log in to your Azure DevOps account and navigate to the project you want to export work items from.

2. Go to the 'Work Items' hub and select the work item type you want to export (e.g., User Stories, Tasks, Bugs).

3. Apply any filters or queries to refine the work items you want to export.

Everything You Can Do In Excel (with AI)
Everything You Can Do In Excel (with AI)

4. Click on the 'Export' button at the top of the work item list. Select 'Excel' from the dropdown menu.

5. Choose whether you want to include child work items in the export. Click 'Export' to download the Excel file.

Using Azure DevOps REST API

Microsoft Teams with Azure DevOps Services (Collaborate, Communicate and Celebrate)
Microsoft Teams with Azure DevOps Services (Collaborate, Communicate and Celebrate)

If you're comfortable with coding, you can use Azure DevOps REST API to export work items programmatically. This method allows for more complex queries and automation.

Here's a basic example using PowerShell and the Azure DevOps REST API:

What Is Azure DevOps? Overview & Key Features
What Is Azure DevOps? Overview & Key Features
Azure Step by Step
Azure Step by Step
What Are Azure DevOps Integration Services? A Complete Integration Overview
What Are Azure DevOps Integration Services? A Complete Integration Overview
Microsoft Azure Tutorial for Beginners
Microsoft Azure Tutorial for Beginners
How Excel Copilot Helps in Automating Financial Operations
How Excel Copilot Helps in Automating Financial Operations
Microsoft Azure Data Fundamentals DP-900: Provisioning Services Cheat Sheet #9 Free Download
Microsoft Azure Data Fundamentals DP-900: Provisioning Services Cheat Sheet #9 Free Download
the azure roadmap is shown in blue and white, with several different logos on it
the azure roadmap is shown in blue and white, with several different logos on it
Mastering Azure Advanced Administration: A Comprehensive Guide
Mastering Azure Advanced Administration: A Comprehensive Guide
receipts to excel with the text receipt in green and white on top of it, next to an image of a calculator
receipts to excel with the text receipt in green and white on top of it, next to an image of a calculator
an image of some type of text that is in the form of a check list
an image of some type of text that is in the form of a check list
how to merge multiple files using power query in windows and mac oss?
how to merge multiple files using power query in windows and mac oss?
Top 10 Excel Functions Every Data Analyst Must Know in 2026
Top 10 Excel Functions Every Data Analyst Must Know in 2026
#azure #microsoft #ai | John Savill | 73 comments
#azure #microsoft #ai | John Savill | 73 comments
How to make dynamic  dependent drop down lists in Excel
How to make dynamic dependent drop down lists in Excel
Knowledge 18062024
Knowledge 18062024
the advanced excel chart sheet is shown in green and has instructions on how to use it
the advanced excel chart sheet is shown in green and has instructions on how to use it
the workflow diagram for azure's roles and microsoft data roles, which includes key differences
the workflow diagram for azure's roles and microsoft data roles, which includes key differences
Common Errors in Excel
Common Errors in Excel
Microsoft Azure Fundamentals Preparation Resources
Microsoft Azure Fundamentals Preparation Resources
Excel Formulas
Excel Formulas

# Set variables $organization = "your_organization" $project = "your_project" $workItemType = "Task" $query = "SELECT [System.Id], [System.WorkItemType], [System.Title], [Microsoft.VSTS.TCM.Reason] WHERE [System.WorkItemType] = '$workItemType'" $uri = "https://dev.azure.com/$organization/$project/_apis/wit/workItems?api-version=6.0-preview.1&query=$query&ids=&idsOnServer=&errorPolicy=omit&fields=System.Id,System.WorkItemType,System.Title,Microsoft.VSTS.TCM.Reason" $headers = @{ "Authorization" = "Bearer $token" } Invoke-RestMethod -Uri $uri -Headers $headers -Method Get -ErrorAction Stop | ConvertTo-Json | Out-File -FilePath "C:\temp\workItems.json"

Once you have the JSON file, you can convert it to Excel using tools like JSON2CSV or Power Query in Excel.

Exporting Sprint Data from Azure DevOps

Exporting sprint data can help you track progress, identify trends, and make data-driven decisions. Azure DevOps provides a sprint report that can be exported to Excel.

To export sprint data, follow these steps:

Using the Web Interface

1. Log in to your Azure DevOps account and navigate to the project containing the sprints you want to export.

2. Go to the 'Boards' hub and select the team that manages the sprints.

3. Click on the 'Sprints' tab at the top of the board. Select the sprint you want to export from the dropdown menu.

4. Click on the 'Reports' tab and select 'Sprint report'.

5. Customize the report as needed, then click 'Export' at the top of the report. Select 'Excel' from the dropdown menu.

Using Azure DevOps REST API

Similar to exporting work items, you can use the Azure DevOps REST API to export sprint data programmatically. The 'Get Sprint' API can retrieve sprint details, which can then be converted to Excel.

Here's a basic example using PowerShell and the Azure DevOps REST API:

# Set variables $organization = "your_organization" $project = "your_project" $sprint = "your_sprint_id" $uri = "https://dev.azure.com/$organization/$project/_apis/teamsettings/sprints/$sprint?api-version=6.0-preview.1" $headers = @{ "Authorization" = "Bearer $token" } Invoke-RestMethod -Uri $uri -Headers $headers -Method Get -ErrorAction Stop | ConvertTo-Json | Out-File -FilePath "C:\temp\sprint.json"

Again, you can use tools like JSON2CSV or Power Query in Excel to convert the JSON file to a usable Excel format.

Incorporating Azure DevOps data into Excel can unlock powerful insights and streamline your workflows. Whether you're using the web interface or the REST API, exporting data to Excel can help you make the most of Azure DevOps' capabilities. Happy exporting!

Related Articles

What Is Test Case Template Test Case Template For Manual Testing Excel How To Export Test Cases With Steps From Azure Devops To Excel What Are Regression Test Cases Test Case Spreadsheet Test Case Management In Excel Test Case Template Qa Test Script Template Excel Free Download Excel Spreadsheet Test Case Template Test Results Template Excel