Connect Polaris to ServiceNow to export issues captured in DAST, SAST, and SCA tests as ServiceNow incident tickets.
Prerequisites and technical requirements
The issue tracking integration for ServiceNow requires:
- A ServiceNow instance and an active subscription.
- A Polaris Organization Administrator who is also a ServiceNow System Administrator to configure the integration.
- A REST API key created in ServiceNow for authentication.
Incident fields and attributes
Each ticket Polaris creates in ServiceNow includes the following fields:
- Short Description: the format varies, depending on how the ticket was created:
- Tickets for individual issues you export manually (single export):
Polaris - '<Application name>' / '<Project name>' / '<Branch name>' contains issue '<Issue type>' - Tickets created for policy violations:
Polaris - '<Application name>' / '<Project name>' / '<Branch name>' issues violating policy '<Policy name>' - Tickets for multiple issues you export manually (bulk export):
Polaris - '<Application name>' / '<Project name>' / '<Branch name>' vulnerabilities ('<Number of issues>' issues)
- Tickets for individual issues you export manually (single export):
- Description: The format of the description includes the Short Description content and a PDF attachment titled Polaris-Issue-Description. The following information is included in the attached PDF:
- Tickets for issues you export manually: detailed information about the issue, remediation guidance, and a link to the issue in Polaris.
- 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.
Connect Polaris to ServiceNow
Create an inbound authentication profile
Create REST API policies
Create an API key
Add a ServiceNow instance to Polaris
To connect Polaris to your ServiceNow instance, follow these steps:
Create integration options for ServiceNow
Optionally, you can set up integration options that allow Polaris to change the status of tickets automatically when the issues linked to the ticket are absent (no longer detected in tests) or dismissed (via triage) in Polaris.
To set up integration options, follow these steps:
Connect a Polaris project to ServiceNow
After an Organization Administrator establishes the connection between Polaris and ServiceNow, follow these steps to connect a project to ServiceNow.
Enable issue tracking for individual branches
After connecting a project in Polaris to an issue tracking instance, you can configure issue tracking synchronization (including auto-close) for individual branches. By default, issue tracking synchronization is only enabled on the project's default branch. You can enable or disable this setting for individual branches to control which branches participate in issue tracking synchronization.
Before you can enable issue tracking synchronization at the branch level, you must:
- Create a ServiceNow Option for the ServiceNow issue tracking integration (see Create integration options for ServiceNow).
- Connect the project to the ServiceNow issue tracking instance and select a ServiceNow Option (see Connect a Polaris project to ServiceNow).
Enabling issue tracking synchronization at the branch level allows you to specify which branches Polaris includes when determining whether to automatically change the ticket status or close a ticket. 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.
The branch is now included in issue tracking synchronization. When issues linked to ServiceNow tickets become absent or are dismissed across all synchronized branches, Polaris automatically closes the associated ticket.