Restart Playbook cancel created tasks

Florian11
Kilo Sage

I have a playbook that creates tasks, among other things.
Is it possible to set in the playbook that created tasks that are open are set to canceled when restarting? Because I currently have the problem that duplicates of tasks are created when restarting.

1 ACCEPTED SOLUTION

J4wahar
Giga Expert

Hi @Florian11 ,

You can create a new action to set the task's state to cancelled. In this action, use the parent record's sys_id as an input to identify the task records.

Then, in your playbook call this action at the initial stage, and pass the parent (current record) sys_id as a parameter. If any related child task exists, the action will update its state to cancelled.

 

If this solution works for you, please mark it as helpful!

View solution in original post

1 REPLY 1

J4wahar
Giga Expert

Hi @Florian11 ,

You can create a new action to set the task's state to cancelled. In this action, use the parent record's sys_id as an input to identify the task records.

Then, in your playbook call this action at the initial stage, and pass the parent (current record) sys_id as a parameter. If any related child task exists, the action will update its state to cancelled.

 

If this solution works for you, please mark it as helpful!