Set Task Owner depending on the request site
Requirement:
Set Task Owner depending on the request site.
Usecase:
When a task is triggered from a request, it should be assigned to a technician depending on the request site.
Steps to follow:
- Goto Admin > Task Custom Functions > Global function > New > Paste the content from the attachment Global function_5.txt and save it with a name.
- Update the URL and integration key in the script.
- You can get the integration key under Admin > Integrations > Integration Key > New
- Please use an integration key with admin privilege, as there wont be any role related permission issues.
- Update the integration key in the global function.
- Go to Admin --> Task Custom Functions. Create a new function.
- Refer to the attached script. (setTaskOwner.txt.)
- Update the global function count in the script as per your instance.
- Configure Task custom trigger to get executed on every task being created with "Module" as "Request".
New to ADSelfService Plus?
Related Articles
Set Task Owner depending on the request field values
Requirement: Set Task Owner depending on the request field values. Usecase: When a task is triggered from a request, it should be assigned to a technician depending on the request field values. Steps to follow: Goto Admin > Task Custom Functions > ...
Scripts to automatically cancel request tasks when the request status is set to cancelled (when the task closure rule is enabled)
NOTE: In the attached script Owner and Group value is hardcoded, so the script works only when the group and owner name are configured in task closure rules(valid technician name and group name). If technician and group doesn't exist inside the task ...
Query to show Request and associated task details (PGSQL & MSSQL)
Tested in build PGSQL (14300) and MSSQL (14306) PGSQL & MSSQL: SELECT wo.WORKORDERID AS "Request ID", aau.FIRST_NAME AS "Requester", wo.TITLE AS "Subject", pd.PRIORITYNAME AS "Priority", cd.CATEGORYNAME AS "Category", scd.NAME AS "Subcategory", ...
Script to auto-populate the task owner field with the technician who created the request
REQUIREMENT: When a technician creates a request and a task is added under the request, the task owner should be the same technician. TESTED IN: Builds 14503 (Postgres) STEPS: 1) Under "Admin" > "Task Custom Functions," create a new custom function ...
Notify task owner when a task is deleted using Deluge
Requirement: Send Email notification to task owner when a task is deleted from a request. Steps to follow: Go to Admin > Developer Space > Task Custom Functions. Create a new function. Refer to the attached script. (NotifyTaskOwner.txt.) Update the ...