Closing a RITM after all tasks are closed

sarahjane19
Tera Contributor

Hi 

 

I have created a Workflow in flow designer, it has a couple of individual tasks before it adds a set of tasks all for the same team.  I want to close the RITM when all the tasks are complete. However i am struggling with  away to check all the tasks closed on the RITM. Currently i have a "do the following logic flow which i believe i have looking at the task table for records that have the same RITM Number that triggered the flow and where the the status is not one of the open status. Then i have asked for it to tdo that until the count is 0 and added a closure task but it won't close?

1 ACCEPTED SOLUTION

shun6
Giga Sage

Hi @sarahjane19,

 I often use below flow to achive your requirement.

 

1. Use "Look up records" in Catalog Task table and set the condition like "Request Item is Trigger - Service Catalog > Requested Item Record.

shun6_1-1742111206302.png

 

2. Use "For Each Item in" and set the previous step's output as "Item".

shun6_3-1742111477406.png

3. Use "Wait For Condition". Set the Record and Condition like below images.  

shun6_4-1742111600355.pngshun6_5-1742111680183.png

4. Update the Request Item record (Trigger - Service Catalog > Requested Item Record).

shun6_6-1742111734691.png

 

Thanks.

View solution in original post

2 REPLIES 2

shun6
Giga Sage

Hi @sarahjane19,

 I often use below flow to achive your requirement.

 

1. Use "Look up records" in Catalog Task table and set the condition like "Request Item is Trigger - Service Catalog > Requested Item Record.

shun6_1-1742111206302.png

 

2. Use "For Each Item in" and set the previous step's output as "Item".

shun6_3-1742111477406.png

3. Use "Wait For Condition". Set the Record and Condition like below images.  

shun6_4-1742111600355.pngshun6_5-1742111680183.png

4. Update the Request Item record (Trigger - Service Catalog > Requested Item Record).

shun6_6-1742111734691.png

 

Thanks.

Thank you so much that has worked