Script to set Request Technician as the Task Owner for all associated tasks - Deluge

Script to set Request Technician as the Task Owner for all associated tasks - Deluge

Requirement: 
Request technician should be set as the task owner for all available tasks.

Use case:
When the request is updated with the technician, all the associated task needs to be assigned to the same technician.


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 "CustomFunction_to_UpdateTaskOwner.txt" content and save it with a name
(Update the global function count according to your instance)

4.  Configure the created custom function in a trigger to get executed every time a request is updated with a technician.

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