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 onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading || newValue === '') {
return;
}

//Type appropriate comment here, and begin script below
alert("user sys_id " + newValue);
var aj = new GlideAjax('assignedtochange'); //calling Script Include
aj.addParam('sysparm_name', 'assigned'); //calling the function
aj.addParam('sysparm_assign', newValue); //passing the parameter
aj.getXMLAnswer(answer);

function answer(response) { //response = count of incidents
alert ("Assigned to has already been an part of " + response + " Incidents");
}


}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
>**When the Assigned to field on an Incident record changes:**
1. Automatically calculate how many incidents are currently assigned to the same user.
2. Show this count in a alert message.
Loading