How to close linked requests when a parent request is closed.

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 Resolve/Close the parent ticket all tickets linked will also get Resolved/Closed automatically in ServiceDesk Plus and we don’t have to Resolve/Close each linked tickets manually one by one.
For example, we have 10 tickets in total so the first reported ticket we will keep it as Parent ticket and rest all 9 tickets as the Linked ticket.
Now Once we Resolve/Close the first Parent ticket all 9 Linked tickets also get Resolved/Closed automatically in ServiceDesk Plus.

Execution steps:

1. Download and copy the script file into the \Manageengine\ServiceDesk\integration\custom_scripts directory.
2. Update the application URL, the technician API key in the configuration.json.
3. Configure the script under the Admin -> Request Custom Triggers, like shown below.



A short guide on setting up python is available here.

                  New to ADSelfService Plus?

                    • Related Articles

                    • 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. Refer to this link for Python equivalent:  https://pitstop.manageengine.com/portal/en/kb/articles/how-to-close-linked-requests-when-a-parent-request-is-closed ...
                    • 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 ...
                    • Linked request

                      This report is used to find the child request id that are linked to the parent request id.  To make any changes to a query, refer to the KB article below. ...
                    • 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 ...
                    • Query to show parent and child requests (Linked Request) and its details.(MSSQL & PGSQL)

                      Tested in Build PGSQL (14300) or MSSQL (14306) Please go to Reports-New Query Report and execute this query. select woparent.WORKORDERID "Parent request ID", aaauparentreq.first_name "Parent Requester", woparent.title "Parent Subject", ...