Approval assignment scripts
-
- UpdatedJan 30, 2025
- 3 minutes to read
- Yokohama
- Building applications
This is a searchable version of the useful approval and assignment scripts.
Warning: The customization described here was
developed for use in specific instances, and is not supported by Now Support. This method is provided as-is
and should be tested thoroughly before implementation. Post all questions and
comments regarding this customization to our community forum.
For see Viewing my approvals.
- Assign a group for ESS requests
-
The following Assignment Rulescript automatically assigns a group for all ESS Requests.
- Assign catalog item to group based on delivery plan task
-
This assignment rule assigns a service catalog item to the database group if it uses a delivery plan that has a catalog task assigned to the desktop group.
- Assign items with one task
-
This assignment rule automatically assigns any catalog items with only one task associated to a particular group.
- Assignment based on workload
-
Type: Business Rule.
Description: Populate the assigned to based on the assignment group member who has the least amount of active incidents.
Parameters:- order: >1000 if you want to execute after assignment rules
- condition: current.assigned_to == '' && current.assignment_group != ''
- when: before, insert/update
- Run assignment rules when category is changed
-
Type: Client script.
Table: Incident.
Description: This example is an onChange client script on the category field within Incident. Note: this script used to use synchronous AJAX (asynchronous behavior is specified by the third parameter of the ajaxRequest call). The implementation below uses asynchronous AJAX. The drawback of using the synchronous version is that a network response problem could cause the browser to hang. - Custom approval UI macro
- For information on creating a custom approval UI macro, see UI macros.