finding_linear_issues
Creates, updates, deletes, gets or lists a finding_linear_issues resource.
Overview
| Name | finding_linear_issues |
| Type | Resource |
| Id | datadog.security.finding_linear_issues |
Fields
The following fields are returned by SELECT queries:
SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
create_linear_issues | insert | data | Create Linear issues for security findings.<br />This operation creates a case in Datadog and a Linear issue linked to that case for bidirectional sync between Datadog and Linear. You can create up to 50 Linear issues per request and associate up to 50 security findings per Linear issue. Security findings that are already attached to another Linear issue will be detached from their previous Linear issue and attached to the newly created Linear issue. | |
attach_linear_issue | update | data | Attach security findings to a Linear issue by providing the Linear issue URL.<br />You can attach up to 50 security findings per Linear issue. If the Linear issue is not linked to any case, this operation will create a case for the security findings and link the Linear issue to the newly created case. Security findings that are already attached to another Linear issue will be detached from their previous Linear issue and attached to the specified Linear issue. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
site | string | The Datadog site (region) for your organization, for example datadoghq.com, us3.datadoghq.com, us5.datadoghq.com, ap1.datadoghq.com, ap2.datadoghq.com, datadoghq.eu, ddog-gov.com. Resolved from the DD_SITE environment variable when set. Optional: defaults to datadoghq.com, or the value of the DD_SITE environment variable when set; a WHERE value overrides both. |
INSERT examples
- create_linear_issues
- Manifest
Create Linear issues for security findings.<br />This operation creates a case in Datadog and a Linear issue linked to that case for bidirectional sync between Datadog and Linear. You can create up to 50 Linear issues per request and associate up to 50 security findings per Linear issue. Security findings that are already attached to another Linear issue will be detached from their previous Linear issue and attached to the newly created Linear issue.
INSERT INTO datadog.security.finding_linear_issues (
data
)
SELECT
'{{ data }}' /* required */
RETURNING
data
;
# Description fields are for documentation purposes
- name: finding_linear_issues
props:
- name: data
description: |
Array of Linear issue creation request data objects.
value:
- attributes:
assignee_id: "{{ assignee_id }}"
description: "{{ description }}"
label_ids:
- "{{ label_ids }}"
linear_project_id: "{{ linear_project_id }}"
priority: "{{ priority }}"
title: "{{ title }}"
relationships:
findings:
data:
- id: "{{ id }}"
type: "{{ type }}"
project:
data:
id: "{{ id }}"
type: "{{ type }}"
type: "{{ type }}"
UPDATE examples
- attach_linear_issue
Attach security findings to a Linear issue by providing the Linear issue URL.<br />You can attach up to 50 security findings per Linear issue. If the Linear issue is not linked to any case, this operation will create a case for the security findings and link the Linear issue to the newly created case. Security findings that are already attached to another Linear issue will be detached from their previous Linear issue and attached to the specified Linear issue.
UPDATE datadog.security.finding_linear_issues
SET
data = '{{ data }}'
WHERE
data = '{{ data }}' --required
RETURNING
data;