This page describes the issue tracking integration for Azure DevOps, and what you need to do to connect Polaris to Azure DevOps. Once configured, the issue tracking integration allows Polaris to create tickets in Azure DevOps for issues captured in Polaris.
Prerequisites and technical requirements
The issue tracking integration for Azure DevOps requires:
- An Azure DevOps Services instance. Important: The Azure DevOps instance must be routable over the Internet. Closed networks are not supported at this time. Azure DevOps Server is not supported.
- Only organization administrators can connect Polaris to Azure DevOps.
- Authentication between Azure DevOps and Polaris is managed with a personal access token (PAT) that you create in Azure DevOps. The user associated with the PAT will be listed as the creator of any tickets created using the integration. Tip: Consider using a PAT associated with a service account to better-identify the work items Polaris creates.
Work item fields
Each ticket Polaris creates in Azure DevOps includes the following fields:
- Title: the format of titles vary, depending on how the ticket was created:
- Tickets for issues you export manually:
Polaris - Project '<Polaris project name>' contains issue '<Issue Type>' - Tickets created for policy violations:
Polaris - Project '<Polaris project name>' contains issues violating policy '<Policy name>'
- Tickets for issues you export manually:
- Description: the format of descriptions vary, depending on how the ticket was created:
- Tickets for issues you export manually: detailed information about the issue, evidence (DAST issues only), remediation guidance, and helpful links.
- Tickets created for policy violations: the name of the violated policy, the names of any violated rules, and links you can use to view violating issues in Polaris.
- Created by: The user associated with the personal access token used for the integration.
Connect Polaris to Azure DevOps
Create a personal access token
Add an Azure DevOps instance to Polaris
Create integration options for Azure DevOps
Optionally, you can set up integration options that allow Polaris to close work items automatically, when the issues linked to the work item are absent (no longer detected in tests) or dismissed (via triage) in Polaris.
To set up integration options (and enable the auto-close behavior), follow these steps:
If necessary, repeat these steps to create options for other work item types.
Connect a Polaris project to Azure DevOps
Enable auto-close for individual branches
After enabling auto-close for a project, you can configure auto-close settings for individual branches. By default, auto-close is only enabled on the project's default branch. You can enable or disable auto-close for individual branches to control which branches participate in issue tracking synchronization.
Before you can enable auto-close at the branch level, you must:
- Create Azure Options for auto-close (see Create integration options for Azure DevOps).
- Connect the project to Azure DevOps and select an Azure Option (see Connect a Polaris project to Azure DevOps).
Enabling auto-close at the branch level allows you to specify which branches Polaris considers when determining whether to automatically close work items. This is useful when you want to track issue resolution across multiple branches (such as feature branches or release branches) or exclude certain branches from the auto-close behavior.
Organization administrators, organization application managers, application administrators, application contributors, and other users with permissions to manage branch settings can complete these steps.
The branch is now included in issue tracking synchronization. When issues linked to Azure DevOps work items become absent or are dismissed across all synchronized branches (including this one), Polaris will automatically close the associated work items.