We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent acf0dd4 commit ee788f1Copy full SHA for ee788f1
Server-Side Components/Business Rules/Auto-assign Incident to Last Engineer Who Worked on CI/code_snippet.js
@@ -0,0 +1,9 @@
1
+// This script auto-assign Incident to Last Engineer Who Worked on CI.
2
+// Before Business Rule on incident
3
+(function(current, previous){
4
+ var hist = new GlideRecord('incident');
5
+ hist.addQuery('cmdb_ci', current.cmdb_ci);
6
+ hist.orderByDesc('resolved_at');
7
+ hist.query();
8
+ if (hist.next()) current.assigned_to = hist.resolved_by;
9
+})(current, previous);
0 commit comments