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 81b587d commit 7700f4bCopy full SHA for 7700f4b
Server-Side Components/Script Includes/Incident assigned count to assigned to user/code.js
@@ -0,0 +1,16 @@
1
+var assignedtochange = Class.create();
2
+assignedtochange.prototype = Object.extendsObject(AbstractAjaxProcessor, {
3
+
4
+ assigned: function(){
5
+ var assign = this.getParameter('sysparm_assign');
6
+ var inc = new GlideRecord('incident');
7
+ inc.addQuery('assigned_to', assign);
8
+ inc.query();
9
+ while(inc.next()) {
10
+ var count = inc.getRowCount();
11
+ return count;
12
+ }
13
+ },
14
15
+ type: 'assignedtochange'
16
+});
0 commit comments