The Devvies 2025 are here! Celebrate your hard work and innovation by submitting your apps today. Join the excitement!
ServiceNow Community servicenow community
- English (US)
- English (UK)
- Portuguese (Brazilian)
- ServiceNow Community
- IT Service Management
Set assignment group based on variable
- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Printer Friendly Page
- Mark as New
- Report Inappropriate Content
01-17-2024 06:43 AM
Solved! Go to Solution.
01-17-2024 07:33 AM
View solution in original post
- All forum topics
- Previous Question
- Next Question
01-17-2024 07:12 AM
01-17-2024 07:20 AM
- Optimizing Maintenance for Step-Based Request Fulfillment in a Software Store Catalog in ITSM forum Thursday
- Optimizing Maintenance for Step-Based Request Fulfillment in a Software Store Catalog in ITSM forum Wednesday
- Virtual Agent Skill Determination in Virtual Agent forum Wednesday
- Making variable editor editable based on state to opened by user in Virtual Agent forum Tuesday
- Walk-up Experience insights into implementation in ITSM blog Tuesday
A ServiceNow and DevOps enthusiast. I use this blog to share ideas and learn from others.
- Custom Social Profile Link
ServiceNow Automatically set Assignment Group
1 minute read
This is a useful tidbit for auto populating assignment groups. ServiceNow does have a few features that make it possible to auto assign groups based on criteria such as:
- Assignment Lookup Rules
- Data lookup definitions
However, sometimes a simple client script can offer less overhead. In this case I had the following requirements.
- When a requester picks a group it will auto set the assignment group to the Configuration Item approver group
- The requester can accept this or choose to override it
- If a group is not found on the CI, a pop up will alert them to select it manually
To accomplish this the client script was as follows:
Name : Populate Assignment Group Type : onChange Field Name : cmdb_ci (Configuration Item)
Set that on your table (incident/change etc) and your all set!
Why not Assignment Rule?
I was asked, why not create an assignment rule, after all its built into the product. For example a simple rule under System Policy -> Assignment, defined using this script snippet will work.
Sample snippet:
However it is server side and does not set until after the user saves the record. This would be ideal if you wanted to “Hard enforce” that the assignment group must be set by the CI, however if your requirement is to allow the user to override then a client script is the preferred route.
Leave a comment
You may also enjoy, servicenow import set coalesce field not working as expected.
less than 1 minute read
Summary Recently I ran into an issue with a ServiceNow Import Set that was configured to coalesce on a single field. The target system contained an Incident ...
Zabbix Alerts and ServiceNow Event Management
3 minute read
Summary https://docs.servicenow.com/bundle/washingtondc-it-operations-management/page/product/event-management/task/t_EMConfigureZabbixConnector.html
Grafana Alerts and ServiceNow Event Management
2 minute read
Summary Grafana is both a log/metric visualization tool and an alerting tool. It can be configured to send its alert data to ServiceNow Event Management, inc...
Building a ServiceNow ITOM Homelab with XCP-NG
Summary For anyone interested in ServiceNow ITOM, there’s no better way to learn than on your own infrastructure that you can tear down and rebuild as needed...
IMAGES
COMMENTS
Hello All, We have created a reference field on the incident form: Service pointing to table categories which has fields like category, subcategory 1 and subcategory 2 and Assignment group and then based on the service we are setting the related fields on incident form function onChange(control,...
ServiceNow Learn more about ServiceNow products and solutions. Learning Build your skills with instructor-led and online training. ... Everytime we changes the value in assignment group I want to show that value in alert. Right now its showing the sys_id value. Please help. Solved! Go to Solution. 0 Helpfuls 3,654 Views;
In addition to excellent suggestions by @Adrian Ubeda, keep in mind that 'current' refers to the RITM, while in the Catalog Task activity 'task.assignment_group' will set the assignment group of that Catalog Task, so use the appropriate method.Setting the Task AG could then set the AG of the RITM if you have a Business Rule in place to update the RITM AG when a Catalog Task AG changes.
Loading... Loading...
When creating a new record, the Assignment group was auto-populating to an incorrect value.
Reference qualifier on reference field (e.g "Assignment group" field) on each module tables like Incident, Change etc.. refers to Task table as it is a reference field. How to classify groups as per the
For example, there is one catalog item that is being raised by GETit and RITM is generated with an assignment group. I want to update that value when the matching conditions are fulfilled. I tried using assignment rules but again it doesnt work if the field has already a value and in my case assignment group already has a value, we just need to ...
E.g an approval group would have the type of "approval" and the resolver groups can have a type of "resolver". This then distinguishes them. Then in your "assignment_group" column on your table you can set a reference qualifier to ONLY filter down on the type of "resolver". This then prevents stuff being assigned to an approval ...
When a requester picks a group it will auto set the assignment group to the Configuration Item approver group; The requester can accept this or choose to override it; If a group is not found on the CI, a pop up will alert them to select it manually; Solution. To accomplish this the client script was as follows: Name: Populate Assignment Group ...
The requirement is to auto-populate the "Assignment Group" field present on the 'sc_req_item" table