Hi Alexey
It's not exactly what you're asking for but this may be useful.
You can access the current incident.phase_id from the script.
If each task in associated to a different phase, it can somewhat provide the info you need.
Usually, what you can do it quite the other way around: you can create a rule for the incident using the task as the rule object type (and then, you can create also a workflow and a script both using the task as object type and use in the rule), this way you have access to the task context object and its methods.
And of course, if that task is in your workflow or playbook, the flow blocks until you close that task.
These are the options I can envision for your situation.
------------------------------
[]
Leonardo Kenji Shikida
------------------------------
Original Message:
Sent: Wed June 29, 2022 06:06 AM
From: Alexey Fedorov
Subject: Task status
Hello,
What is a proper way to check task status for current incident trough a script?
I need to check if a some task close or not and make a decision.
------------------------------
Alexey Fedorov
------------------------------