Assign technician if they responds to an unassigned ticket - Notification Custom Function

Assign technician if they responds to an unassigned ticket - Notification Custom Function

Requirement:
When a technician addresses an unassigned request, the corresponding ticket is automatically assigned to that technician.

Steps to configure:
1.  Download the attached scripts.  Copy the contents into Notification custom functions.

2.  Goto Admin > Developer Space > Global Function > New > Paste the global function contents and save it with a name.
Update the URL and integration/technician key in the script. 
  1. For builds over 11300, you can get the integration key under Admin > Integrations > Integration Key > New
  2. Please use an integration key with admin privilege, as there wont be any role related permission issues. 

  3. For builds prior to 11300, refer https://help.servicedeskplus.com/api/rest-api.html$key and update the technician key.

3.  Goto Admin > Developer Space > Notification Custom Function > New > Paste the assign_technician.txt content and save it with a name
Update the global function count according to your instance.  In my instances, its global_function_4();

4.  Configure this in a custom trigger to get invoked every time a reply is received on a request. (Invoking Condition can be modified as per your requirement.)


                    New to ADSelfService Plus?

                      • Related Articles

                      • If the technician replies to the unassigned request, the ticket should be assigned to him.

                        Requirement: When a technician responds to an unassigned request, the unassigned ticket is assigned to the technician who responded. Steps to configure: 1.  Download the attached scripts.  Copy the contents into Request custom functions. 2.  Goto ...
                      • Deluge Custom Function - Custom Schedules

                        Sample Scripts for custom schedule. Steps to configure: 1. Copy the respective query and save the query report with a name. 2. Update the query report name in the custom schedule function script. 3. Configure a custom schedule with the custom ...
                      • How to Automatically Associate a Ticket to a Project using PrjID based on Ticket Template

                        This post describes the use of a sample python script you to associate a Project automatically to a ticket during its creation/edit based on conditions, such as template matching. This script can be configured under Custom Triggers and you will find ...
                      • Update status on Technician auto assign

                        Requirement: Updating request status when a technician is assigned through technician auto assign. Steps to configure: Goto Admin > Developer Space > Request Custom Functions > Global function > New > Paste the content from the attachment GF_4 - ...
                      • 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 ...