Random Sample Set of incidents per member of a group
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2024 06:58 AM
Hi All
I am trying to prduce a random list of incidents (5) per member of a resolver group
Im using Data Sampling Techniques by drjohnchun
so i have a script include
and i have the randomSample javascript that calls is
if i want it per member of the group the only way i can get it to show the results is running a seperate for each assigned to
javascript:randomSample('incident','active=false^stateIN6,7^opened_atONLast week@javascript:gs.beginningOfLastWeek()@javascript:gs.endOfLastWeek()^resolved_atONLast week@javascript:gs.beginningOfLastWeek()@javascript:gs.endOfLastWeek()^u_action!=02f061451b7dd410399eea0e6e4bcb27^u_action!=3434c3b61bf16d5099e0315fdc4bcb0d^u_action!=7a5f4256db9cff409a256055ca9619cc^u_action!=18cf4656db9cff409a256055ca96191c^u_action!=3042c73e1bb16d5099e0315fdc4bcb37^assignment_group=b1393c10db46a700a5dacd4d0b961975^assigned_to=30ed1e7bdb01ef40f168e16c0b9619b6', 6,'number')
what i want it to be able to do is run for each member of the assignment group without having to produce a list per person individually
if i add more than one scripted filter i just get the results from the first one
if i take out the assigned to i just get random 5 from the assignment group
is there any way to combine them so i dont have to do a seperate one for all 37