How to Calculate Date Differences and SLA Deadlines in Azure DevOps
Question details
The user needs a way to calculate elapsed hours, trigger notifications, and change field colors based on start and end dates for SLA tracking within Azure DevOps.

- Product
- Azure DevOps
- Device & OS
- not provided
- Scenario
- Tracking Service Level Agreements (SLAs) by calculating time differences between work item creation and completion dates.
- Observed behavior
- Native Azure DevOps fields do not automatically calculate date differences or trigger complex SLA notifications without specific configuration or external automation.
Verify that you have Project Administrator permissions in your Azure DevOps environment, as you may need to modify work item processes, install extensions, or configure custom webhooks.
Consult the Microsoft Learn Azure DevOps Community
Since advanced SLA calculations often require custom work item rules and automation outside standard features, posting in the dedicated expert community is the most effective way to find tailored solutions.
Azure DevOps provides extensive customization, but calculating precise elapsed hours and changing field colors dynamically usually requires specific combinations of Work Item Rules, Power Automate, or third-party extensions. The Microsoft Learn community specializes in these advanced setups.
Navigate to the official Microsoft Learn Azure DevOps forum at https://learn.microsoft.com/en-us/azure/devops/.
Post your specific SLA calculation requirements, including the work item types you are using and what fields act as your start and end dates.
Clearly explain any organizational restrictions you might have against using external webhooks, Logic Apps, or Marketplace extensions so the community can provide native workarounds.

Use Power Automate for SLA Notifications
Integrate Power Automate (or Logic Apps) with Azure DevOps to calculate date differences and send automated SLA breach notifications.
Track Project SLAs Easily Offline with WPS Office
While Azure DevOps handles complex software pipelines, tracking SLA deadlines, calculating precise date differences, and generating project reports is often much faster and highly customizable in a spreadsheet. WPS Office provides a free, lightweight, and universally compatible alternative to Microsoft Office, making it easy to manage your data.
- 1. Download and Install: Download WPS Office for free from the official website and install it on your device.
- 2. Open WPS Spreadsheet: Launch WPS Spreadsheet and either create a new SLA tracker or open your existing .xlsx report exported from Azure DevOps.
- 3. Calculate Deadlines: Use standard spreadsheet date and time formulas to instantly calculate elapsed hours and highlight breached SLAs using Conditional Formatting.

Frequently Asked Questions
Can I calculate date differences natively in a basic Azure DevOps query?
No, Azure DevOps queries do not natively support complex mathematical operations or dynamic date difference calculations (like subtracting a start date from an end date). You typically need to use Power BI, custom extensions, or API automation to calculate elapsed time.
How can I change the color of a work item card based on an SLA?
You can customize your board by navigating to Board Settings > Styles. Here, you can add styling rules that change the color of the cards based on specific criteria, such as a custom 'SLA Status' field or specific tags.
Are there built-in extensions for SLA tracking in Azure DevOps?
While not built-in by default, the Visual Studio Marketplace offers several third-party SLA and time-tracking extensions. Administrators can install these to integrate advanced date difference tracking and automated SLA warnings directly into the DevOps environment.




