Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

var changes = ["CHG0006417"];
new_owner = 'ib35';
new_owner_group = 'BSG HR and Payroll Systems';

for (i=0; i<changes.length; i++) {
new_owner_sysid='blah';
var og = new GlideRecord('sys_user_group');
og.addQuery('name',new_owner_group);
og.query();
if (og.next())

Unknown macro: { new_owner_sysid=og.sys_id; }

var gr = new GlideRecord('change_request');
gr.addQuery('number',changes[i]);
gr.query();
if(gr.next())

Unknown macro: { gs.print("owner = " + gr.assigned_to); gr.assigned_to = new_owner; gr.assignment_group = new_owner_sysid; gr.update(); }

}

  • No labels