TimersOnOwnerChange
Stops the "Time To Assignment" timer once an owner is assigned to the Incident Starts the "Remediation SLA' timer once an owner is assigned to the Incident.
python · CaseManagement-Generic
Source
import demistomock as demisto # noqa: F401 from CommonServerPython import * # noqa: F401 # This script stops the Time to Assignment timer when an Owner is assigned to an Incident, and starts the Remediation # SLA Timer. if not demisto.args().get("old") and demisto.args().get("new"): # If owner was no-one and is now someone: demisto.executeCommand("stopTimer", {"timerField": "timetoassignment"}) demisto.executeCommand("startTimer", {"timerField": "remediationsla"}) demisto.results( "Assignment of the incident was successful, Time to Assignment has been stopped, and the Remediation timer has" " been started!" )
README
Stops the “Time To Assignment” timer once an owner is assigned to the Incident
Starts the “Remediation SLA’ timer once an owner is assigned to the Incident
Script Data
| Name | Description |
|---|---|
| Script Type | python3 |
| Tags | field-change-triggered |
| Cortex XSOAR Version | 5.0.0 |
Inputs
| Argument Name | Description |
|---|---|
| old | The old value of the changed field |
| new | The new value of the changed field |
Outputs
There are no outputs for this script.