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 06c5594 commit 800c0ccCopy full SHA for 800c0cc
Server-Side Components/Script Includes/Count Assigned To Field/countAssignedUtil.js
@@ -0,0 +1,15 @@
1
+var countAssignedUtil = Class.create();
2
+countAssignedUtil.prototype = Object.extendsObject(AbstractAjaxProcessor, {
3
+
4
+ getCount: function() {
5
+ var ga = new GlideAggregate('incident');
6
+ ga.addQuery('assigned_to', this.getParameter('sysparm_assignedto'));
7
+ ga.addAggregate('COUNT', 'assigned_to');
8
+ ga.query();
9
+ while (ga.next()) {
10
+ var assignedIncident = ga.getAggregate('COUNT', 'assigned_to');
11
+ return assignedIncident;
12
+ }
13
+ },
14
+ type: 'countAssignedUtil'
15
+});
0 commit comments