CompleteTaskOnTimerBreach

This is an SLA breach script that will complete playbook tasks tagged with 'timerbreach' when the SLA breaches. This can be used to complete tasks waiting for manual input when a timer breaches its SLA, and move the playbook along.

python · CaseManagement-Generic

Source

import demistomock as demisto  # noqa: F401
from CommonServerPython import *  # noqa: F401

# get the incident id.
inc = demisto.incident().get("id")

# execute the taskComplete command on all tasks tagged with timerbreach.
demisto.executeCommand("taskComplete", {"id": "timerbreach", "incidentId": inc})

README

This is an SLA breach script that will complete playbook tasks tagged with ‘timerbreach’ when the SLA breaches.

This can be used to complete tasks waiting for manual input when a timer breaches its SLA, and move the playbook along.

Script Data


Name Description
Script Type python3
Tags sla
Cortex XSOAR Version 6.5.0

Inputs


There are no inputs for this script.

Outputs


There are no outputs for this script.