Close all associated tasks when a request is closed

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 as resolved or closed, all associated tasks seamlessly mirror this status, ensuring streamlined management of requests and associated tasks.

Steps to configure:
1.  Download the attached scripts.  Copy the contents into Request custom functions.
2.  Goto Admin > Global Function > New > Paste the global function contents and save it with a name.
(Update the SDP configurations details in the global function)

3.  Goto Admin > Request Custom Function > New > Paste the closeAllAssociatedTasks.txt content and save it with a name
4.  Configure the created custom function in a trigger to get executed every time a request is closed.


                    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 ...
                      • 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 ...
                      • Close all the associated requests when a change is closed

                        Requirement: When a change is closed, all the associated requests have to be closed. This includes both: Change initiated due to request Request caused by change Steps to configure: Goto Admin > Developer Space > Global function > New > Paste the ...
                      • Request closed by and Resolved by from history

                        This report is used to find the closed by and resolved by technician from the history. In some cases the request may be assigned to some technician and it is closed by a different technician. This information is captured in the history.  To make any ...
                      • How to populate request details on associated tasks.

                        This sample script is used to update request field values into tasks associated with request templates The Request details are stored as a JSON Object in a file and its path is provided as input to the Script. This can be used in the application ...