Script to automatically assign a technician to an unassigned request based on the first response
When a technician responds to an unassigned request, the corresponding ticket will be automatically assigned to the specific technician.
Tested in: Build 14306 (Postgres)
Steps:
- Download the attached scripts.
- Under Admin > Developer Space > Global Custom Function, create a new custom function. Paste the content of the Global Function script into the function.
- Make sure to update the URL and technician key in the script. It's recommended to use a technician key with admin privileges to prevent any permission issues related to roles.
- Under Admin > Developer Space > Notification Custom Function, create another custom function. Paste the content of the assign technician script into this function.
- Under Admin > Custom Trigger > Notifications, configure a new Custom Trigger with the following settings:
The condition could be modified according to the specific requirements.
New to ADSelfService Plus?
Related Articles
Assign Technician for the unassigned requests using 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 ...
Script to satisfy first response SLA
As of now only for the following scenarios, First response can be marked in the MSP application, * Notes addition * Worklog addition * Technicians manual response Apart from this if you want to mark any other actions in the application as First ...
Queries to show time stamp and time taken to first response, first tech assign, first group assign and first status set time ( MSSQL )
Tested in MSSQL build (14306) MSSQL: First responded time: SELECT wo.WORKORDERID "Request ID", wo.TITLE "Subject", aau.FIRST_NAME "Requester", ti.FIRST_NAME "Technician", LONGTODATE(wo.CREATEDTIME) "Created Time", LONGTODATE(wo.RESPONDEDTIME) ...
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 ...
Query to show ticket first assign/pick up time _ (PGSQL )
Tested in Build PGSQL (14300) or MSSQL (14306) PGSQL: SELECT wo.WORKORDERID "Request ID", wo.title "Subject", longtodate(wo.CREATEDTIME) "Request Created Time", longtodate(woh.operationtime) "First Pickup time", qd.QUEUENAME "Group",ti.FIRST_NAME ...