Business Rule
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi,
Looking for help in creating business rule to change assignment group when the state change.
Example state is "new" and the assignment group is "ABCD", if state become "active" I need the assignment group to change to "new group"
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Use BR in advanced when to run - BEFORE - Insert & Update
Code ->
and Output Result ->
as State is new SOftware Group must be selected
Also you can use assignment Rules Configuration which will be the best Practice,
If you find this helpful plz mark it as helpful....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
it's an easy requirement and you can achieve this without scripting in Before Update business rule on incident with proper filter conditions
Like this
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @sparkles ,
We can achieved that by using the Assignment Rule and Also Business Rule .
Here is the solution.
Using Assignment Rule
Steps
Go to System Policy → Assignment → Assignment Rules
Click New
Fill the fields:
Table: Incident (or your table)
Active: True
Order: 100 (or appropriate)
Conditions:
State changes to Active
Assignment group is ABCD
In the Actions section:
Assignment Group = New Group
- Note:
Assignment rules run only if “Use assignment rules” is enabled in system properties and the UI Action/Flow does not override assignment.
here another way to achioved it
Steps to do it:
Go to System Definition → Business Rules
Click New
Fill:
Name: Set Assignment Group on State Change
Table: Incident
When: Before → Update
Advanced → Script: paste the code
- Note:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Simple solution!!!
Use Business Rule (Before Update)
This Before Update Business Rule automatically assigns a specific group when the state field changes. It compares current. state with previous. state , and if different, sets the assignment group using the desired group’s sys_id.
If you find this helpful then mark as thumbs up ...!!