CherwellGetIncident
This script is an example script of how to retrieve an incident from Cherwell. The script wraps the cherwell-get-business-object command of the cherwell integration. When writing your own script to get a business object, follow the instructions found in the configuration section of the script, but do not change the execution section.
python · Cherwell
Details
| ID | CherwellGetIncident |
|---|---|
| Language | python |
| From Version | 5.0.0 |
| Docker Image | demisto/python3:3.12.13.10116658 |
| Tags | Cherwell |
README
This script is an example script of how to retrieve an incident from Cherwell. The script wraps the cherwell-get-business-object command of the cherwell integration. When writing your own script to get 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-get-business-object
Inputs
| Argument Name | Description |
|---|---|
| id_type | Type of ID. |
| id_value | Public ID or record ID. |
Outputs
| Path | Description | Type |
|---|---|---|
| Cherwell.BusinessObjects.RecordId | Recoed ID | String |
| Cherwell.BusinessObjects.PublicId | Public ID | String |
| Cherwell.BusinessObjects.Description | Incident description | String |
| Cherwell.BusinessObjects.Priority | Incident ptiority | Number |
| Cherwell.BusinessObjects.OwnedBy | Incident owned by field | String |
| Cherwell.BusinessObjects.Service | Service needed for the incident | String |
| Cherwell.BusinessObjects.CustomerDisplayName | Incident reporting customer | String |
| Cherwell.BusinessObjects.CreatedDateTime | Created date time | Date |
| Cherwell.BusinessObjects.TotalTasks | Total tasks for this incident | Number |
args: - auto: PREDEFINED description: Type of ID. name: id_type predefined: - public_id - record_id required: true - description: Public ID or record ID. name: id_value required: true comment: This script is an example script of how to retrieve an incident from Cherwell. The script wraps the cherwell-get-business-object command of the cherwell integration. When writing your own script to get a business object, follow the instructions found in the configuration section of the script, but do not change the execution section. commonfields: id: CherwellGetIncident version: -1 name: CherwellGetIncident outputs: - contextPath: Cherwell.BusinessObjects.RecordId description: Recoed ID type: String - contextPath: Cherwell.BusinessObjects.PublicId description: Public ID type: String - contextPath: Cherwell.BusinessObjects.Description description: Incident description type: String - contextPath: Cherwell.BusinessObjects.Priority description: Incident ptiority type: Number - contextPath: Cherwell.BusinessObjects.OwnedBy description: Incident owned by field type: String - contextPath: Cherwell.BusinessObjects.Service description: Service needed for the incident type: String - contextPath: Cherwell.BusinessObjects.CustomerDisplayName description: 'Incident reporting customer ' type: String - contextPath: Cherwell.BusinessObjects.CreatedDateTime description: Created date time type: Date - contextPath: Cherwell.BusinessObjects.TotalTasks description: Total tasks for this incident type: Number script: '-' timeout: '0' type: python tags: [Cherwell] dependson: must: - Cherwell|||cherwell-get-business-object dockerimage: demisto/python3:3.12.13.10116658 subtype: python3 tests: - Cherwell Example Scripts - test fromversion: 5.0.0 skipprepare: - script-name-incident-to-alert