Skip to content

Commit 15307f4

Browse files
Display the Count of active Problem records per Assignment Group
Display the Count of active Problem records per Assignment Group.
1 parent 1eae7e3 commit 15307f4

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
var probCount = new GlideAggregate('problem');
2+
probCount.addActiveQuery();
3+
probCount.groupBy('assignment_group');
4+
probCount.addAggregate('COUNT');
5+
probCount.query();
6+
while(probCount.next())
7+
{
8+
gs.print("Count of Problem records :" +probCount.getAggregate('COUNT') + " " + "Per Assignment Group :" + probCount.getDisplayValue('assignment_group'));
9+
}

0 commit comments

Comments
 (0)