- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-29-2015 07:33 AM
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:
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-30-2015 04:52 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-14-2017 11:11 PM
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??