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 > 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.
![](https://pitstop.manageengine.com/galleryDocuments/edbsn9ba350ffb264d5a27d87301d0967370b61a18a23eaf73c12e5d02fc4b3f39dc7f6b7ee126df89d2bbbf1bd0ce56a05f4?inline=true)
- Update the integration key in the global function.
![](https://pitstop.manageengine.com/galleryDocuments/edbsna62ead3af0afbd9e06156f56c625b90b54570358d5c2090dfa566b243cd2007e8f06413143b68e2219dbab4c566f556e?inline=true)
- Go to Admin --> Task Custom Functions. Create a new function.
- Refer to the attached script. (updateTask.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?