GetTasksWithSections

Groups all tasks for a specific incident according to the task headers (titles).

python · Cortex REST API

Details

IDGetTasksWithSections
Languagepython
From Version6.0.0
Docker Imagedemisto/python3:3.12.13.10404775
TagsUtility

README

Groups all tasks for a specific incident according to the task headers (titles).

Script Data


Name Description
Script Type python3
Tags Utility
Cortex XSOAR Version 6.0.0

Inputs


Argument Name Description
investigation_id Incident ID to create the task table.

Outputs


Path Description Type
Tasks The entire task object Unknown
Tasks.id Task ID string
Tasks.name Task name string
Tasks.section Task section path string
Tasks.type Task type (regular, condition, title, playbook, start) string
Tasks.owner Task owner string
Tasks.state Task state (inprogress, Completed, WillNotBeExecuted, Error, Waiting, Blocked, and empty string for not started) string
Tasks.scriptId Task related script (empty if manual) string
Tasks.startDate Task start date unknown
Tasks.completedDate Task completed date unknown
Tasks.dueDate Task due date (SLA) unknown
Tasks.parentPlaybookID Task parent playbook ID (if the task is part of a sub-playbook) unknown
Tasks.completedBy Name of the user who completed the task string
args:
- description: Incident ID to create the task table.
  name: investigation_id
commonfields:
  id: GetTasksWithSections
  version: -1
name: GetTasksWithSections
script: '-'
type: python
subtype: python3
dockerimage: demisto/python3:3.12.13.10404775
tags:
- Utility
comment: Groups all tasks for a specific incident according to the task headers (titles).
enabled: true
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.section
  description: Task section path.
  type: string
- contextPath: Tasks.type
  description: Task type (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 (if the task is part of a sub-playbook).
  type: unknown
- contextPath: Tasks.completedBy
  description: Name of the user who completed the task.
  type: string
scripttarget: 0
sensitive: true
tests:
- GetTasksWithSections SetIRProcedures end to end test
fromversion: 6.0.0