Skip to content
Closed
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
11 changes: 11 additions & 0 deletions Server-Side Components/Background Scripts/Incident creation
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// This script can be used in a Script Include or Business Rule
var incidentGR = new GlideRecord('incident');
incidentGR.initialize();
incidentGR.short_description = 'Critical Incident - Immediate Attention Required';
incidentGR.description = 'This is a Priority 1 incident created via script.';
incidentGR.priority = 1; // Priority 1
incidentGR.impact = 1; // High impact
incidentGR.urgency = 1; // High urgency
incidentGR.caller_id = gs.getUserID(); // Sets the current user as the caller
incidentGR.category = 'network'; // Example category
incidentGR.insert();
Loading