Close all linked requests when a parent request is closed - Deluge

Close all linked requests when a parent request is closed - Deluge

Requirement:
All the linked requests need to be closed when the parent request is closed.


Usecase:
In an Organisation, the same issue might be reported by different end-users.  Since all these requests are raised for the same issue, we can link them to one parent request.
When the parent request is Resolved/Closed, all tickets linked to this parent ticket should also be Resolved/Closed automatically.  

Steps to configure:
1.  Download the attached scripts.  Copy the contents into Request custom functions.
2.  Goto Admin > Request Custom Function > 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 > Custom Function > New > Paste the closed_linked_request.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.

Note:  From Global Function >> Copy the global_function_(count).  Update the copied count in the custom functions.




                  New to ADSelfService Plus?

                    • Related Articles

                    • 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 the request upon adding a note.

                      Kindly follow the steps mentioned below: 1) Go to Admin >> Developer Space >> Custom Function >> Global Functions >> Copy & Paste the attached GF_Content.txt and save it with a name. Update the URL and technician key as per your instance. Refer to ...
                    • Automatically create multiple child requests when a parent request is created (Deluge)

                      PURPOSE: When a request is created, multiple child requests can be generated under the same account as the parent request. TESTED BUILDS: 14306, 14500, 14503, 14504 and 14507 STEPS: 1) Download and extract the zip file from the attachment. 2) Under ...
                    • Create multiple Child Requests - Deluge Script

                      This is a sample deluge script to automatically trigger the creation of multiple child requests from a parent request, based on the request template chosen. The request ID of the child requests will be added as a Note in the parent request. This is ...
                    • Close parent request only if all the linked request are closed.

                      Requirement: Parent ticket can be closed only if all the linked requests are closed Usecase: In many organizations, the parent ticket is divided into many sub-requests, each of which is handled by a different technician/group. All of these ...