GetIncidentTasksByState Deprecated

Deprecated. Use the GetIncidentTasks script instead.

javascript · Cortex REST API

Details

IDGetIncidentTasksByState
Languagejavascript
From Version5.0.0
TagsUtility

README

Gets all tasks for a specific incident by the given state.

Script Data


Name Description
Script Type javascript
Tags Utility

Inputs


Argument Name Description
incidentId The Incident ID to get tasks from.
states The comma-separated list of states. Can be, “New”, “InProgress”, “Completed”, “Waiting”, “Error”, “Skipped”, “Blocked”. You can also leave this field empty to get all tasks.

Outputs


Path Description Type
Tasks The entire task object. Unknown
Tasks.id The task ID. string
Tasks.name The task name. string
Tasks.type The type of the task. Can be, “regular”, “condition”, “title”, “playbook”, or “start”. string
Tasks.owner The task owner. string
Tasks.state The task state. Can be, “inprogress”, “Completed”, “WillNotBeExecuted”, “Error”, “Waiting”, “Blocked”, and empty string for not started. string
Tasks.scriptId The task related script (empty if manual). string
Tasks.startDate The task start date. unknown
Tasks.completedDate The task completed date. unknown
Tasks.dueDate The task due date (SLA). unknown
Tasks.parentPlaybookID The task parent playbook ID (in case the task is part of sub-playbook). unknown
Tasks.completedBy The task completed by (username). string
commonfields:
  id: GetIncidentTasksByState
  version: -1
name: GetIncidentTasksByState
script: ''
type: javascript
tags:
- Utility
comment: Deprecated. Use the GetIncidentTasks script instead.
enabled: true
args:
- name: inc_id
  required: true
  default: true
  description: Incident ID to get tasks from.
- name: states
  description: 'Comma separated list of states. Possible values: New, InProgress, Completed, Waiting, Error, Skipped, Blocked (leave empty to get all tasks).'
outputs:
- contextPath: Tasks
  description: The entire task object.
- contextPath: Tasks.id
  description: Task ID.
  type: string
- contextPath: Tasks.name
  description: Task name.
  type: string
- contextPath: Tasks.type
  description: The type of the task (regular, condition, title, playbook, start).
  type: string
- contextPath: Tasks.owner
  description: Task owner.
  type: string
- contextPath: Tasks.state
  description: Task state (inprogress, Completed, WillNotBeExecuted, Error, Waiting, Blocked, and empty string for not started).
  type: string
- contextPath: Tasks.scriptId
  description: Task related script (empty if manual).
  type: string
- contextPath: Tasks.startDate
  description: Task start date.
  type: unknown
- contextPath: Tasks.completedDate
  description: Task completed date.
  type: unknown
- contextPath: Tasks.dueDate
  description: Task due date (SLA).
  type: unknown
- contextPath: Tasks.parentPlaybookID
  description: Task parent playbook ID (in case the task is part of sub-playbook).
  type: unknown
- contextPath: Tasks.completedBy
  description: Task completed by (username).
  type: string
scripttarget: 0
sensitive: true
tests:
- No tests (deprecated)
fromversion: 5.0.0
deprecated: true