commonfields: id: GetIncidentTasks version: -1 name: GetIncidentTasks script: '' type: javascript tags: - Utility comment: Get all tasks for a specific incident by the given state, name and/or tag. enabled: true args: - name: inc_id required: true default: true description: Incident ID to get tasks from. - name: states isArray: true description: 'Comma-separated list of states. Possible values: New, InProgress, Completed, Waiting, Error, LoopError, Skipped, Blocked. (Leave empty to get all tasks).' - name: name description: 'The name of the task to search.' - name: tag description: 'The tag to search.' - name: using description: 'The Cortex REST API integration instance to use for the API request. If not provided, the default instance is used.' 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, LoopError, 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 a sub-playbook). type: unknown - contextPath: Tasks.completedBy description: Task completed by (username). type: string scripttarget: 0 sensitive: true tests: - No test fromversion: 6.10.0