Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2012 01:31 PM
I was given this code from Brad (Navigus). I've posted another comment trying to see if there's a way to fire this event and look at the relationship of the ci instead of just the owned by of the ci.
Need help with Run Script to fire event notification from Workflow
var ct = new GlideRecord('change_task');
ct.addQuery('change_request', current.sys_id);
ct.query();
gs.log("Number of tasks: " + ct.getRowCount());
while (ct.next()) {
gs.eventQueue('server_downtime_notification', ct, ct.cmdb_ci.owned_by, ct.sys_id);
}