Skip to content

Commit 7700f4b

Browse files
authored
Code.js
1 parent 81b587d commit 7700f4b

File tree

1 file changed

+16
-0
lines changed
  • Server-Side Components/Script Includes/Incident assigned count to assigned to user

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)