From a6348bfa18993bc7459b84be73c992b142d4fb80 Mon Sep 17 00:00:00 2001 From: Lisa Cawley Date: Wed, 25 Sep 2024 08:59:24 -0700 Subject: [PATCH 1/2] [DOCS][ResponseOps][Connectors] Add support of additional fields for ServiceNow ITSM and SecOps (#191779) (cherry picked from commit 6c291b8af211ac319adb31937eca2015c7c67d7b) --- .../schemas/run_connector_subaction_pushtoservice.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/x-pack/plugins/actions/docs/openapi/components/schemas/run_connector_subaction_pushtoservice.yaml b/x-pack/plugins/actions/docs/openapi/components/schemas/run_connector_subaction_pushtoservice.yaml index d81c0e61059be..f6b15360d739e 100644 --- a/x-pack/plugins/actions/docs/openapi/components/schemas/run_connector_subaction_pushtoservice.yaml +++ b/x-pack/plugins/actions/docs/openapi/components/schemas/run_connector_subaction_pushtoservice.yaml @@ -30,6 +30,13 @@ properties: type: object description: Information necessary to create or update a Jira, ServiceNow ITSM, ServiveNow SecOps, or Swimlane incident. properties: + additional_fields: + type: string + nullable: true + maxLength: 20 + description: > + Additional fields for ServiceNow ITSM and ServiveNow SecOps connectors. + The fields must exist in the Elastic ServiceNow application and must be specified in JSON format. alertId: type: string description: The alert identifier for Swimlane connectors. From f1f967485881b0563d665a608c6f905a04b37887 Mon Sep 17 00:00:00 2001 From: lcawl Date: Wed, 25 Sep 2024 09:32:40 -0700 Subject: [PATCH 2/2] Generate openAPI documents --- oas_docs/output/kibana.yaml | 8 ++++++++ x-pack/plugins/actions/docs/openapi/bundled.json | 6 ++++++ x-pack/plugins/actions/docs/openapi/bundled.yaml | 6 ++++++ 3 files changed, 20 insertions(+) diff --git a/oas_docs/output/kibana.yaml b/oas_docs/output/kibana.yaml index 4a10407b48279..dd5d4a282bde8 100644 --- a/oas_docs/output/kibana.yaml +++ b/oas_docs/output/kibana.yaml @@ -23091,6 +23091,14 @@ components: ITSM, ServiveNow SecOps, or Swimlane incident. type: object properties: + additional_fields: + description: > + Additional fields for ServiceNow ITSM and ServiveNow SecOps + connectors. The fields must exist in the Elastic ServiceNow + application and must be specified in JSON format. + maxLength: 20 + nullable: true + type: string alertId: description: The alert identifier for Swimlane connectors. type: string diff --git a/x-pack/plugins/actions/docs/openapi/bundled.json b/x-pack/plugins/actions/docs/openapi/bundled.json index d2f852374b926..99a671167d053 100644 --- a/x-pack/plugins/actions/docs/openapi/bundled.json +++ b/x-pack/plugins/actions/docs/openapi/bundled.json @@ -5461,6 +5461,12 @@ "type": "object", "description": "Information necessary to create or update a Jira, ServiceNow ITSM, ServiveNow SecOps, or Swimlane incident.", "properties": { + "additional_fields": { + "type": "string", + "nullable": true, + "maxLength": 20, + "description": "Additional fields for ServiceNow ITSM and ServiveNow SecOps connectors. The fields must exist in the Elastic ServiceNow application and must be specified in JSON format.\n" + }, "alertId": { "type": "string", "description": "The alert identifier for Swimlane connectors." diff --git a/x-pack/plugins/actions/docs/openapi/bundled.yaml b/x-pack/plugins/actions/docs/openapi/bundled.yaml index 8797a87b32eeb..4b98c7e2e66f8 100644 --- a/x-pack/plugins/actions/docs/openapi/bundled.yaml +++ b/x-pack/plugins/actions/docs/openapi/bundled.yaml @@ -3924,6 +3924,12 @@ components: type: object description: Information necessary to create or update a Jira, ServiceNow ITSM, ServiveNow SecOps, or Swimlane incident. properties: + additional_fields: + type: string + nullable: true + maxLength: 20 + description: | + Additional fields for ServiceNow ITSM and ServiveNow SecOps connectors. The fields must exist in the Elastic ServiceNow application and must be specified in JSON format. alertId: type: string description: The alert identifier for Swimlane connectors.