Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
function executeRule(current, previous /*null when async*/ ) {
if (current.priority == 1 && current.operation() == 'insert') {
var problemGR = new GlideRecord('problem');
problemGR.initialize();
problemGR.short_description = current.short_description;
problemGR.description = current.description;
problemGR.cmdb_ci = current.cmbi_ci;

var problemID = problemGR.insert();

if (problemID) {
current.problem-id = problemID;
current.update();
}
}
})(current, previous);


Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Auto create Problem when P1 Incident created

1. Create a After Business Rule.
2. Applicable to Incident Table.
3. Use After Business Rule - Insert.
4. Add conditions if required.
5. Apply the script.
6. When a Priority-1 Incident get raised then after followed by Problem will get created.
7. Map the Incident fields like short_description, description, cmdb_ci will mapped to the Problem Record.
8. Map the problem to the Incident.
Loading