on incident form whenever incident promote to major incident assignment group should change

Juhi Jha
Tera Contributor

Before promoting to major incident there is some different assignment group , after promoting it to major incident the assignment group should change , if created a assignment rule which is not working , i have given a condition as whenever major incident state is accepted then assignment group should be assignment group manager , which is not working 

3 REPLIES 3

Shalini32
Kilo Guru
Kilo Guru

 

Hi,

You can create after business rule on incident table - 



Type- After

Table - Incident

Condition - type changes to Major or type is major

Script - 



current.assignment_group = <GROUP SYS ID>;

 

 


Please mark my answer as correct if this solves your issues!

If it helped you in any way then please mark helpful!

 

Thanks and regards,

Shalini

Saurav11
Kilo Patron
Kilo Patron

Hello,

 

Please do the below:-

 

Create a after update business rule  with condition as Major incident state is accepted.

 

Saurav11_0-1665571870602.png

 

In the script copy paste the below code(Replace the sysidofthegroup with your group sysid)

 

(function executeRule(current, previous /*null when async*/) {

current.assignment_group='sysidofthegroup';
current.update();

})(current, previous);

 

Please mark my answer as correct based on Impact.

Avoid current.update in business rule due to recurssions