How to prevent REQ/RITM records closing when there's still active tasks?

MBarrott
Mega Sage

Feel like this might be an easy fix but I also want to get best practice on this. 

 

Once a catalog item has been submitted our techs have found that sometimes additional tasks need to be created against the RITM record. This works fine but once the original sc_task has been closed, the REQ and RITM records also close out even though there is a secondary task still active. 

 

What would be the best way to ensure these records aren't closed until ALL the tasks are inactive?

 

I was trying a Business Rule but it didn't seem to be working. 

 

MBarrott_0-1721066465350.png

MBarrott_1-1721066501796.png

 

9 REPLIES 9

There must be another Business rule, or Flow or Workflow that is driving that forward. I found this link which yours looks pretty similar, so this route does work, but something is preventing it.

Restrict RITM Closure when SCTASK is Open using Business Rules 

 

If this information helped resolve your issue, please remember to mark response correct and thumbs up to help future community members on this information, thanks!

Hi @Zach Koch - Yeah there's definitely something else working behind the scenes I just need to find the rule that's triggering. Would probably be better to modify that particular script rather than have 2 scripts conflicting. I'm just not sure which one it is, it has to be an OOTB SNOW rule or flow since we haven't modified this. 

AshishKM
Kilo Patron
Kilo Patron

Hi @MBarrott

Based on the requirement, you have to add open task check logic in workflow/flow before closing the RITM ( or ending the workflow/flow ).

I am sure, every single catalog item doesn't need the additional task, so put this logic in dedicated catalog item's workflow only.  

 

-Thanks,

AshishKM


Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution

Hi @AshishKM - I think they want this applicable to any catalog item. Granted I don't think every item will require additional tasks but they would like the functionality working just in case. 

Ok, in this case you can create a workflow ( or sub-flow ) and write all required code for checking all task closed ( or active == false ) and call this workflow/( or sub-flow ) before the RITM closure in each catalog items' workflow.

 

 


Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution