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:
Login to SDP > Goto Admin > Developer Space > Task Custom Function > New > Paste the "closeRequestIfAllAssociatedTasksClosed.txt" content and save it with a name
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?
Related Articles
How to close associated incident requests of change request automatically
This post describes the use of a python script to close change that are in a specific stage using Custom Schedules. Use Case: There may be a scenario where number of Change Requests that have got closed and the associated incident is still in open ...
Script: Close associated changes when a request is closed
Use case: In many cases, the client never comes back to confirm the change. This means that the change remains opened indefinitely. When the ticket is closed it is logical that the change to be closed. No one is going to close a ticket unless the ...
Close all associated tasks when a request is closed
Requirement: When a request is closed, it is necessary to close all of its related tasks. Usecase: In an organizational context, a request can involve multiple technicians, resulting in its segmentation into distinct tasks. When the request is marked ...
How to close linked requests when a parent request is closed.
This post describes the use of a python script to close all the linked request when a parent request is closed using custom triggers. Use Case: We get tickets which are getting reported for the same issue but different end-users so that once we ...
Number of open and closed tasks per ticket (MSSQL)
Tested in Build MSSQL (14306) MSSQL: SELECT "wo"."WORKORDERID" AS "Request ID", "qd"."QUEUENAME" AS "Group", "aau"."FIRST_NAME" AS "Requester", "dpt"."DEPTNAME" AS "Department", "cd"."CATEGORYNAME" AS "Category", "scd"."NAME" AS "Subcategory", ...