While creating a incident, if we set one assignment group that should create a problem automatically

mathumathi
Tera Contributor

Example:
If we creating an incident and set the assignment group to Infrastructure and Database it should automatically need to create one problem.

NOTE: 

While creating incident , If we set any other assignment group Other than Database and Infrastructure group . It should not to create a problem record .

only if we assign the assignment group to infrastructure and database , it should need to create a problem record based on the incident.

 

Thanks in Advance.

1 ACCEPTED SOLUTION

Sohail Khilji
Kilo Patron
Kilo Patron

@mathumathi ,

 

You need to create a after business rule for this (this will be on Create not update.) 

 

the script can look something like this :

if(current.assignment_group == 'passthe_sys_id_of the _group_here'){
var gr = new GlideRecord('problem');
gr.initalize();
gr.description = 'pass the description';
gr.short_description = 'pass the short_description';
// pass all the varaibles that you want to update in problem, you can use the current varaible to upate your problem fields too
gr.insert();
}

☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....

LinkedIn - Lets Connect

View solution in original post

1 REPLY 1

Sohail Khilji
Kilo Patron
Kilo Patron

@mathumathi ,

 

You need to create a after business rule for this (this will be on Create not update.) 

 

the script can look something like this :

if(current.assignment_group == 'passthe_sys_id_of the _group_here'){
var gr = new GlideRecord('problem');
gr.initalize();
gr.description = 'pass the description';
gr.short_description = 'pass the short_description';
// pass all the varaibles that you want to update in problem, you can use the current varaible to upate your problem fields too
gr.insert();
}

☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....

LinkedIn - Lets Connect