commonfields: id: DemistoGetIncidentTasksByState version: -1 name: DemistoGetIncidentTasksByState script: '' type: javascript tags: - Utility comment: Deprecated. Use GetIncidentTasksByState instead. enabled: true args: - name: incidentId 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 test fromversion: 5.0.0 deprecated: true