Schedule job event not being processed

pablor
Kilo Expert

I have created a scheduled job to keep the track of priority two incidents that are currently in waiting feedback status and last update was 3 days ago.

But once executed the list of event are not processed and the state always stay as ready. Could somebody explain me what is wrong? The purpose is create a notification. Many thanks in advance

var looking = new GlideRecord('incident');
looking.addQuery('active', true);
looking.addQuery('priority', '2');
looking.addQuery('incident_state', '=', '-10');
looking.addQuery('sys_updated_on', '<', gs.daysAgo(3));
looking.query();     // Issue the query to the database to get relevant records
            while (looking.next()) {
                        gs.eventQueue('incident.p2inactivity',looking,looking.u_owner,looking.number);
                }

Bellow the event log summary:

p2incident.jpg

p22.jpg

p23.png

1 ACCEPTED SOLUTION

pablor
Kilo Expert

Hi,



Is working perfectly fine now. The problem was caused by the event definition.


When I created the new event I set up the Queue field to value '100', which was causing the event to not be grabbed by the event process.


View solution in original post

10 REPLIES 10

sowmyab
Giga Contributor

Facing the same issue still ... Queue field is empty..


once executed the list of event are not processed and the state always stay as ready..


Can you please help me out   what will be issue??