Built something you're proud of? Tell the story. A quick G2 review of App Engine or Build Agent helps other developers see what's possible on ServiceNow. Share your experience.

Close all tasks before closing incident in Playbook

Hareesha
Tera Contributor

Hi all,

 

i have a requirement to close all related tasks before closing incident in playbook. how to add this activity before closing an incident activity?

1 REPLY 1

lpruit2
Mega Sage

Greetings @Hareesha . Are all the related tasks created as part of the playbook as well? In my mind, the natural order of operations would be that the Incident is the "parent" task and all related tasks or child tasks would be truly "worked" and closed before the Incident is ready to be closed.

 

However, if you have a scenario in which the Incident needs to be closed and all related tasks need to be closed you could call the Flow Designer Flow Action "Update Multiple Records" and then change the State field value. 

Update Multiple Records action

I've also seen people use Business Rules that when a parent Incident is resolved, it checks for child and related records and then closes out those tasks as well using a simple GlideRecord query and the .update() method.