- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2023 01:33 AM
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.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2023 01:37 AM
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....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2023 01:37 AM
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....