---
title: Ticketing Integrations
description: Security ticketing integrations
breadcrumbs: Docs > Datadog Security > Ticketing Integrations
---

# Ticketing Integrations

{% callout %}
# Important note for users on the following Datadog sites: app.ddog-gov.com

{% alert level="danger" %}
This product is not supported for your selected [Datadog site](https://docs.datadoghq.com/getting_started/site). ().
{% /alert %}

{% /callout %}
Available for:
{% icon name="icon-siem" /%}
 Cloud SIEM | 
{% icon name="icon-cloud-security-management" /%}
 Workload Protection | 
{% icon name="icon-app-sec" /%}
 App and API Protection | 
{% icon name="icon-security-code-security" /%}
 Code Security | 
{% icon name="icon-cloud-security-management" /%}
 Cloud Security 
You can use [Datadog Case Management](https://docs.datadoghq.com/incident_response/case_management/) to manage tickets in third-party tools like [Jira](https://docs.datadoghq.com/integrations/jira/) and [ServiceNow](https://docs.datadoghq.com/integrations/servicenow/). For details, see [Case Management integration with third-party ticketing tools](https://docs.datadoghq.com/incident_response/case_management/notifications_integrations/#third-party-tickets).

This page discusses using Datadog Security with Datadog Case Management for ticketing management.

## Case management and security products{% #case-management-and-security-products %}

Case Management is supported for all security products that use signals or findings:

- Code Security (in [Findings](https://app.datadoghq.com/security/code-security))
- Cloud Security (in [Findings](https://app.datadoghq.com/security/compliance))
- Cloud SIEM (in [Signals](https://app.datadoghq.com/security/siem/signals))
- App and API Protection (in [Signals](https://app.datadoghq.com/security/appsec/signals) and [Findings](https://app.datadoghq.com/security/appsec/inventory/finding))
- Workload Protection (in [Signals](https://app.datadoghq.com/security/workload-protection/signals) and [Findings](https://app.datadoghq.com/security/workload-protection/findings))

Open any signal or finding in these products or do a bulk selection of findings in the explorers, and use the **Create Ticket** button to create a case in Datadog.

## Bidirectional ticket syncing{% #bidirectional-ticket-syncing %}

Bidirectional syncing enables you to update tickets automatically when changes occur in Datadog, and update some Datadog information when changes occur in your ticketing tool.

### Supported products{% #supported-products %}

Bidirectional syncing is supported for the following Code and Cloud Security finding categories:

- Libraries (SCA)
- Static Code (SAST)
- Runtime Code (IAST)
- Secret Scanning
- Infrastructure as Code (IaC)
- Misconfigurations
- Identity Risks
- Host and Container Vulnerabilities
- App and API Protection
- Workload Protection

### Single source of truth{% #single-source-of-truth %}

Bidirectional syncing enables you to sync tickets with Datadog cases. However, Datadog is the single source of truth for issue detection and resolution.

A Datadog finding's related ticket can be closed manually. However, the Datadog finding remains open if Datadog cannot confirm that the issue is fixed. This restriction helps ensure that a finding is not closed and removed when someone closes a related ticket.

Closing a Datadog case without remediation does not close the finding either.

Remediation of the finding in Datadog or defining an exception by [muting the finding](https://app.datadoghq.com/security/automation_pipelines/mute) are the only ways to close a finding. After the finding is remediated, its related cases and tickets are closed.

### Set up bidirectional syncing{% #set-up-bidirectional-syncing %}

{% tab title="Jira" %}
The following steps set up bidirectional syncing with Jira and verify that setup is successful.

1. Set up the following prerequisites in your Datadog account, or verify that they are set up already. The prerequisites are listed in their setup order.
   1. The [Datadog Jira integration](https://docs.datadoghq.com/integrations/jira/).
   1. A [webhook for the Jira integration](https://docs.datadoghq.com/integrations/jira/#configure-a-jira-webhook). Configuring a webhook enables cases created in Case Management to automatically create issues in Jira and keep both resources synced.
   1. A [new Case Management project](https://docs.datadoghq.com/incident_response/case_management/projects/). A project is a container object that holds a set of cases.
   1. The [Jira integration is configured within the project](https://docs.datadoghq.com/incident_response/case_management/notifications_integrations/#third-party-tickets).
      1. Enable the **Sync data between Case Management and Jira** option.
      1. In **Title**, select **Two-way sync**.
      1. Complete the remaining settings, and then click **Save changes**.
1. Verify that bidirectional Case Management integration with Jira is working:
   1. Open [any product supporting bidirectional ticket syncing](https://docs.datadoghq.com/security/ticketing_integrations/#supported-products).
   1. Locate the ticketing dropdown option in the explorer or finding page and select **Jira**. The button opens a **Jira Ticket** modal.
   1. Verify that the **Case Management <-> Jira Integration** section exists and bidirectional sync is enabled.

{% image
   source="https://datadog-docs.imgix.net/images/security/jira_modal.941118c7581720cb43eab3946416123f.png?auto=format"
   alt="Modal used to create a Jira ticket for a Security finding, with bidirectional sync enabled." /%}

You are ready to start creating bidirectional Case Management tickets.

If you do not see the **Case Management <-> Jira Integration** section, ensure that you have completed the prerequisites.
{% /tab %}

{% tab title="ServiceNow" %}
The following steps set up bidirectional syncing with ServiceNow and verify that setup is successful.

1. Set up the following prerequisites in your Datadog account, or verify that they are set up already. The prerequisites are listed in their setup order.
   1. The [Datadog ServiceNow integration](https://docs.datadoghq.com/integrations/servicenow/).
      1. Go to **Settings > Integrations > ServiceNow > Case Management**.
      1. Choose `Datadog Cases ITSM` as the case table for bidirectional sync.
   1. A [Case Management project](https://docs.datadoghq.com/incident_response/case_management/projects/) to link to your assignment group. A project is a container object that holds a set of cases linked to your ServiceNow table. If there is no linked project, Datadog creates a project when you create a ticket.
   1. For ITSM bidirectional sync, ensure ServiceNow users who update incidents have at least the `itil` role. See [ServiceNow ITOM/ITSM setup](https://docs.datadoghq.com/integrations/guide/servicenow-itom-itsm-setup/) for details.
1. Verify that bidirectional Case Management integration with ServiceNow is working:
   1. Open [any product supporting bidirectional ticket syncing](https://docs.datadoghq.com/security/ticketing_integrations/#supported-products).
   1. Locate the ticketing dropdown option in the explorer or finding page and select **ServiceNow**. The button opens a **ServiceNow Ticket** modal.
   1. Verify that the bidirectional sync is enabled for the configured **Instance** and **Assignment Group**.

You are ready to start creating bidirectional Case Management tickets.

If you do not see the **Case Management <-> ServiceNow Integration** section, ensure that you have completed the prerequisites.
{% /tab %}

### Create bidirectional tickets{% #create-bidirectional-tickets %}

The following steps create a bidirectional ticket for a Security finding.

1. Open [any product supporting bidirectional ticket syncing](https://docs.datadoghq.com/security/ticketing_integrations/#supported-products).
1. Locate the **Ticketing** icon dropdown option for a finding in the explorer or under **Next Steps** in the finding page.
1. You can also select up to 50 findings at a time to create multiple tickets or one ticket for multiple findings.
1. Select the third-party tool from the dropdown.
1. Create a ticket for any third-party tool supported (see sections below).

{% collapsible-section %}
#### Jira ticket

1. Open the **Jira Ticket** modal. You can use a new or existing ticket. Let's look at creating a new Jira ticket.
1. Complete the following settings:
   1. **Jira account:** select the Jira account where you want the ticket created.
   1. **Jira Project:** select the Jira project to use.
   1. **Jira work type:** select the Jira work type to create.
   1. **Assignee and Priority:** optionally select the assigned user and priority.
1. To add more fields to the Jira ticket Datadog creates, use **Add Optional Field** to add the fields.
1. View **Data Sync Settings** to review and update the Case Management Project linked and the bidirectional sync settings per field.
1. Click **Create**.

**Notes**:

- Bidirectional sync with Jira is available for certain Jira ticket attributes, such as status, assignee, and comments, but not all Jira fields are available.

{% /collapsible-section %}

{% collapsible-section %}
#### ServiceNow ticket

1. Open the **ServiceNow Ticket** modal. You can use a new or existing ticket. Let's look at creating a new ServiceNow ticket.
1. Complete the following settings:
   1. **Instance:** select the ServiceNow instance where you want the ticket created.
   1. **Assignment group:** select the ServiceNow group to assign the ticket to.
1. If you are creating a ticket for multiple findings, choose a creation mode:
   - **Single Ticket:** creates a single aggregated ticket linked to all selected findings.
   - **Multiple Tickets:** creates an individual ticket for each selected finding.
1. View **Data Sync Settings** to review and update the Case Management Project linked and the bidirectional sync settings per field.
1. Click **Create**.

**Notes**:

- Bidirectional sync is supported for `ITSM` mode only. `ITOM` events do not support bidirectional sync.

- Attaching to an existing ticket is supported for `ITSM` mode only.

- Only ServiceNow incident URLs are supported. Problem and change request URLs are not accepted.

{% /collapsible-section %}

### Manage bidirectional Case Management tickets{% #manage-bidirectional-case-management-tickets %}

{% tab title="Jira" %}
Existing bidirectional Jira tickets are listed in the finding's **Ticketing** or **Next Steps** sections.

Here's an example from a Static Code (SAST) finding:

{% image
   source="https://datadog-docs.imgix.net/images/security/bidir-jira-existing.c5339001c41b05c0102d6bd284fef96a.png?auto=format"
   alt="finding with existing Jira ticket: in the Next Steps section, under Ticket Created, a pill with the Jira logo and text 'CJT-16'" /%}

Hover over the Jira ticket to see its details.

{% image
   source="https://datadog-docs.imgix.net/images/security/bidir-jira-existing-hover.cb7d74014b30c5480b6215bfc93d64a0.png?auto=format"
   alt="Mouseover state for pill in previous image. Modal with Jira ticket details." /%}

Details such as assignee and status are provided along with a timeline of the Jira issue and Datadog case changes.

Closed Jira tickets are green.

In **Datadog Associated Case**, the related Datadog case is provided. Click the case name to open it in [Case Management](https://docs.datadoghq.com/incident_response/case_management/).
{% /tab %}

{% tab title="ServiceNow" %}
Existing bidirectional ServiceNow tickets are listed in the finding's **Ticketing** or **Next Steps** sections.

Hover over the ServiceNow ticket to see its details, including status, priority, and a timeline of changes synced between ServiceNow and Datadog.

In **Datadog Associated Case**, the related Datadog case is provided. Click the case name to open it in [Case Management](https://docs.datadoghq.com/incident_response/case_management/).
{% /tab %}

#### Automatic detachment and ticket opening/closing{% #automatic-detachment-and-ticket-openingclosing %}

Archiving a case does not delete related tickets, but deleting a case project detaches all tickets from related Security findings.

Detaching a ticket from a Security finding does not delete it.

If there are no open findings left attached to a ticket (because they are all detached or resolved or muted), it is automatically closed. Similarly, if at least one open finding is attached to a closed ticket (because it was attached or detected again or unmuted), it is automatically reopened.

### Bidirectional Case Management facets{% #bidirectional-case-management-facets %}

There are several case management facets under **Triage**, including:

- Case Key
- Jira Key
- Case Status
- Has ticket attached

You can query attributes and create dashboards using these facets.

## Ticketing integration API{% #ticketing-integration-api %}

The link between Datadog Cases and existing Security findings can be managed with the public API.

Dedicated endpoints allow users to [create Datadog case for existing security findings](https://docs.datadoghq.com/api/latest/security-monitoring/#create-cases-for-security-findings), [attach security findings to an existing Datadog case](https://docs.datadoghq.com/api/latest/security-monitoring/#attach-security-findings-to-a-case), and [detach security findings from their case](https://docs.datadoghq.com/api/latest/security-monitoring/#detach-security-findings-from-their-case).

Users can also [create Jira issues for security findings](https://docs.datadoghq.com/api/latest/security-monitoring/#create-jira-issues-for-security-findings) and [attach security findings to a Jira issue](https://docs.datadoghq.com/api/latest/security-monitoring/#attach-security-findings-to-a-jira-issue).
