Business Rule

sparkles
Tera Contributor

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

8 REPLIES 8

yashkamde
Tera Contributor

Use BR in advanced when to run - BEFORE - Insert & Update
Code ->

Screenshot 2025-11-26 102715.png

and Output Result ->

Screenshot 2025-11-26 102701.png
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....

Ankur Bawiskar
Tera Patron
Tera Patron

@sparkles 

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

AnkurBawiskar_0-1764134447734.png

 

AnkurBawiskar_1-1764134468075.png

 

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

UmesH77
Tera Contributor

Hi @sparkles ,

We can achieved that by using the Assignment Rule and Also Business Rule .

Here is the solution.

 

Using Assignment Rule 

Steps

  1. Go to System Policy → Assignment → Assignment Rules

  2. Click New

  3. Fill the fields:

    • Table: Incident (or your table)

    • Active: True

    • Order: 100 (or appropriate)

  4. Conditions:

    • State changes to Active

    • Assignment group is ABCD

  5. 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:

      1. Go to System Definition → Business Rules

      2. Click New

      3. Fill:

        • Name: Set Assignment Group on State Change

        • Table: Incident

        • When: Before → Update

      4. Advanced → Script: paste the code

 

 

AbhishekW204758
Tera Contributor

Simple solution!!!

Use Business Rule (Before Update)

Screenshot 2025-11-26 123211.png

 

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 ...!!