Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 5 additions & 9 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13758,7 +13758,8 @@ components:
description: Attributes of the Jira issue to create.
properties:
assignee_id:
description: Unique identifier of the user assigned to the Jira issue.
description: Unique identifier of the Datadog user assigned to the Jira
issue.
example: f315bdaf-9ee7-4808-a9c1-99c15bf0f4d0
type: string
description:
Expand All @@ -13779,8 +13780,9 @@ components:
type: object
priority:
$ref: '#/components/schemas/CasePriority'
description: Priority of the Jira issue. If not provided, the priority will
be automatically set to "NOT_DEFINED".
description: Datadog case priority mapped to the Jira issue priority. If
not provided, the priority will be automatically set to "NOT_DEFINED".
To configure the mapping, see [Bidirectional ticket syncing with Jira](https://docs.datadoghq.com/security/ticketing_integrations/#bidirectional-ticket-syncing-with-jira).
example: P4
title:
description: Title of the Jira issue. If not provided, the title will be
Expand Down Expand Up @@ -87136,9 +87138,6 @@ paths:
permissions:
- security_monitoring_findings_write
- appsec_vm_write
x-unstable: '**Note**: This endpoint is in beta and is subject to change.

Please check the documentation regularly for updates.'
post:
description: 'Create Jira issues for security findings.

Expand Down Expand Up @@ -87182,9 +87181,6 @@ paths:
permissions:
- security_monitoring_findings_write
- appsec_vm_write
x-unstable: '**Note**: This endpoint is in beta and is subject to change.

Please check the documentation regularly for updates.'
/api/v2/security/findings/search:
post:
description: 'Get a list of security findings that match a search query. [See
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2026-01-02T17:04:07.979Z

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2026-01-02T17:21:33.080Z

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2026-01-02T16:54:04.434Z

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2026-01-02T17:23:28.665Z

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2026-01-02T16:58:53.646Z

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

39 changes: 27 additions & 12 deletions examples/v2/security-monitoring/CreateJiraIssues.rb
Original file line number Diff line number Diff line change
@@ -1,35 +1,50 @@
# Create Jira issues for security findings returns "Created" response

require "datadog_api_client"
DatadogAPIClient.configure do |config|
config.unstable_operations["v2.create_jira_issues".to_sym] = true
end
api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new

body = DatadogAPIClient::V2::CreateJiraIssueRequestArray.new({
data: [
DatadogAPIClient::V2::CreateJiraIssueRequestData.new({
attributes: DatadogAPIClient::V2::CreateJiraIssueRequestDataAttributes.new({
assignee_id: "f315bdaf-9ee7-4808-a9c1-99c15bf0f4d0",
description: "A description of the Jira issue.",
fields: {
"key1": "value", "key2": "['value']", "key3": "{'key4': 'value'}",
},
priority: DatadogAPIClient::V2::CasePriority::NOT_DEFINED,
title: "A title for the Jira issue.",
title: "A title",
description: "A description",
}),
relationships: DatadogAPIClient::V2::CreateJiraIssueRequestDataRelationships.new({
findings: DatadogAPIClient::V2::Findings.new({
data: [
DatadogAPIClient::V2::FindingData.new({
id: "ZGVmLTAwcC1pZXJ-aS0wZjhjNjMyZDNmMzRlZTgzNw==",
id: "eWswLWJsdC1hZm5-aS0wMjRlYTgwMzVkZTU1MGIwYQ==",
type: DatadogAPIClient::V2::FindingDataType::FINDINGS,
}),
],
}),
project: DatadogAPIClient::V2::CaseManagementProject.new({
data: DatadogAPIClient::V2::CaseManagementProjectData.new({
id: "aeadc05e-98a8-11ec-ac2c-da7ad0900001",
id: "959a6f71-bac8-4027-b1d3-2264f569296f",
type: DatadogAPIClient::V2::CaseManagementProjectDataType::PROJECTS,
}),
}),
}),
type: DatadogAPIClient::V2::JiraIssuesDataType::JIRA_ISSUES,
}),
DatadogAPIClient::V2::CreateJiraIssueRequestData.new({
attributes: DatadogAPIClient::V2::CreateJiraIssueRequestDataAttributes.new({
title: "A title",
description: "A description",
}),
relationships: DatadogAPIClient::V2::CreateJiraIssueRequestDataRelationships.new({
findings: DatadogAPIClient::V2::Findings.new({
data: [
DatadogAPIClient::V2::FindingData.new({
id: "a3ZoLXNjbS14eXV-aS0wNWY5MGYwMGE4NDg2ODdlOA==",
type: DatadogAPIClient::V2::FindingDataType::FINDINGS,
}),
],
}),
project: DatadogAPIClient::V2::CaseManagementProject.new({
data: DatadogAPIClient::V2::CaseManagementProjectData.new({
id: "959a6f71-bac8-4027-b1d3-2264f569296f",
type: DatadogAPIClient::V2::CaseManagementProjectDataType::PROJECTS,
}),
}),
Expand Down
33 changes: 33 additions & 0 deletions examples/v2/security-monitoring/CreateJiraIssues_379590688.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Create Jira issue for security finding returns "Created" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new

body = DatadogAPIClient::V2::CreateJiraIssueRequestArray.new({
data: [
DatadogAPIClient::V2::CreateJiraIssueRequestData.new({
attributes: DatadogAPIClient::V2::CreateJiraIssueRequestDataAttributes.new({
title: "A title",
description: "A description",
}),
relationships: DatadogAPIClient::V2::CreateJiraIssueRequestDataRelationships.new({
findings: DatadogAPIClient::V2::Findings.new({
data: [
DatadogAPIClient::V2::FindingData.new({
id: "YmNlZmJhYTcyMDU5ZDk0ZDhiNjRmNGI0NDk4MDdiNzN-MDJlMjg0NzNmYzJiODY2MzJkNjU0OTI4NmVhZTUyY2U=",
type: DatadogAPIClient::V2::FindingDataType::FINDINGS,
}),
],
}),
project: DatadogAPIClient::V2::CaseManagementProject.new({
data: DatadogAPIClient::V2::CaseManagementProjectData.new({
id: "959a6f71-bac8-4027-b1d3-2264f569296f",
type: DatadogAPIClient::V2::CaseManagementProjectDataType::PROJECTS,
}),
}),
}),
type: DatadogAPIClient::V2::JiraIssuesDataType::JIRA_ISSUES,
}),
],
})
p api_instance.create_jira_issues(body)
37 changes: 37 additions & 0 deletions examples/v2/security-monitoring/CreateJiraIssues_829823123.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Create Jira issue for security findings returns "Created" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new

body = DatadogAPIClient::V2::CreateJiraIssueRequestArray.new({
data: [
DatadogAPIClient::V2::CreateJiraIssueRequestData.new({
attributes: DatadogAPIClient::V2::CreateJiraIssueRequestDataAttributes.new({
title: "A title",
description: "A description",
}),
relationships: DatadogAPIClient::V2::CreateJiraIssueRequestDataRelationships.new({
findings: DatadogAPIClient::V2::Findings.new({
data: [
DatadogAPIClient::V2::FindingData.new({
id: "a3ZoLXNjbS14eXV-aS0wNWY5MGYwMGE4NDg2ODdlOA==",
type: DatadogAPIClient::V2::FindingDataType::FINDINGS,
}),
DatadogAPIClient::V2::FindingData.new({
id: "eWswLWJsdC1hZm5-aS0wMjRlYTgwMzVkZTU1MGIwYQ==",
type: DatadogAPIClient::V2::FindingDataType::FINDINGS,
}),
],
}),
project: DatadogAPIClient::V2::CaseManagementProject.new({
data: DatadogAPIClient::V2::CaseManagementProjectData.new({
id: "959a6f71-bac8-4027-b1d3-2264f569296f",
type: DatadogAPIClient::V2::CaseManagementProjectDataType::PROJECTS,
}),
}),
}),
type: DatadogAPIClient::V2::JiraIssuesDataType::JIRA_ISSUES,
}),
],
})
p api_instance.create_jira_issues(body)
Loading
Loading