Prevent an incident/problem from closing while tasks are open
This is a handy little script that allows you to prevent a parent record (such as an incident or a problem) from being closed if there are still open child tasks. First, add a client callable script includes with the name childTasks var childTasks = ...