CherwellUpdateIncident

This script is an example script of how to update an incident in Cherwell. The script wraps the update-business-object command of the cherwell integration. When writing your own script to update a business object, follow the instructions found in the configuration section of the script, but do not change the execution section.

python · Cherwell

Details

IDCherwellUpdateIncident
Languagepython
From Version5.0.0
Docker Imagedemisto/python3:3.12.13.10116658
TagsCherwell

README

This script is an example script of how to update an incident in Cherwell. The script wraps the update-business-object command of the cherwell integration. When writing your own script to update a business object, follow the instructions found in the configuration section of the script, but do not change the execution section.

Script Data


Name Description
Script Type python3
Tags Cherwell
Cortex XSOAR Version 5.0.0

Dependencies


This script uses the following commands and scripts.

  • cherwell-update-business-object

Inputs


Argument Name Description
description Incident description.
priority Incident priority.
owned_by Incident owner.
service Service needed.
id_value Public ID or record ID.
id_type Type of ID.

Outputs


Path Description Type
Cherwell.BusinessObjects.PublicId Incident public ID String
Cherwell.BusinessObjects.RecordId Incident record ID String
args:
- description: Incident description.
  name: description
- auto: PREDEFINED
  description: Incident priority.
  name: priority
  predefined:
  - '1'
  - '2'
  - '3'
  - '4'
  - '5'
  - '6'
- description: Incident owner.
  name: owned_by
- description: Service needed.
  name: service
- description: Public ID or record ID.
  name: id_value
  required: true
- auto: PREDEFINED
  description: Type of ID.
  name: id_type
  predefined:
  - public_id
  - record_id
  required: true
comment: This script is an example script of how to update an incident in Cherwell. The script wraps the update-business-object command of the cherwell integration. When writing your own script to update a business object, follow the instructions found in the configuration section of the script, but do not change the execution section.
commonfields:
  id: CherwellUpdateIncident
  version: -1
name: CherwellUpdateIncident
tags: [Cherwell]
dependson:
  must:
  - Cherwell|||cherwell-update-business-object
outputs:
- contextPath: Cherwell.BusinessObjects.PublicId
  description: Incident public ID
  type: String
- contextPath: Cherwell.BusinessObjects.RecordId
  description: Incident record ID
  type: String
script: '-'
timeout: '0'
type: python
dockerimage: demisto/python3:3.12.13.10116658
subtype: python3
tests:
- Cherwell Example Scripts - test
fromversion: 5.0.0
skipprepare:
- script-name-incident-to-alert