Automatically Close the Request When All Associated Tasks Are Closed

Automatically Close the Request When All Associated Tasks Are Closed

Summary:
This article explains how to automatically close a request once all its associated tasks are closed.
We have this configuration with in request closure rules, but it would be applied across all templates. However, in cases where the requirement is specific to certain templates or customized workflows, a script-based approach is required.

Use Case
In many workflows, multiple tasks are associated with a single request. Once all these tasks are completed and closed, the main request should also be closed automatically to ensure workflow consistency and reduce manual intervention.

Steps to Configure:
  1. Login to SDP > Goto Admin > Developer Space > Task Custom Function > New > Paste the "closeRequestIfAllAssociatedTasksClosed.txt" content and save it with a name
  2. Configure the script in a task custom trigger, to get invoked for every task that is being closed under request module.


                  New to ADSelfService Plus?