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 @@
This code_snippet.js script will auto-calculate Change Implementation Risk Using ML Score.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// This script will auto-calculate Change Implementation Risk Using ML Score.
// Call an internal ML score table and set risk.
// Before Business Rule on change_request
(function(current, previous){
var ml = new GlideRecord('u_ml_change_risk');
ml.addQuery('u_signature', current.short_description);
ml.query();
if (ml.next()) current.u_ml_risk_score = ml.u_score;
else current.u_ml_risk_score = 50;
})(current, previous);
Loading