Auto closure of RITM when all tasks are closed complete

Bcrant
Tera Contributor

Good afternoon! 

I have a few workflows with a large number of catalog tasks (15+) that get created when an item is requested. What is the best way to have the RITM auto close when ALL tasks are closed complete? To this point i've added stages and a few wait states but I only want the RITM to close when ALL tasks are closed. 

Any tips or advice is appreciated. Example copied below. 

find_real_file.png

 

5 REPLIES 5

The SN Nerd
Giga Sage
Giga Sage

This should happen OOB, as long as you set your RITM stage to Completed once all tasks are closed.


ServiceNow Nerd
ServiceNow Developer MVP 2020-2022
ServiceNow Community MVP 2019-2022

@Paul Morris 

That's what I thought as well but you can see in the screen shot that I have the "Completed" stage in play at the end of the flow, yet the RITM remains open when all tasks are closed complete. Odd!

The SN Nerd
Giga Sage
Giga Sage

Does your 'End' trigger before the Completed stage marker?
Might want to put one just before the end in case.


ServiceNow Nerd
ServiceNow Developer MVP 2020-2022
ServiceNow Community MVP 2019-2022

John Zhang1
Kilo Patron
Kilo Patron

There is no OOB BR to handle your requirement.  Since all your catalog tasks are created through your workflow so can simply close your RITM when all tasks are close by set Value activity.  Please see a sample below:

find_real_file.png

 

find_real_file.png