diff --git a/Server-Side Components/Background Scripts/Incident creation b/Server-Side Components/Background Scripts/Incident creation new file mode 100644 index 0000000000..acd5f1b4c0 --- /dev/null +++ b/Server-Side Components/Background Scripts/Incident creation @@ -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();