I have a Catalog Task in my workflow. I'd like to set this tasks 'assigned_to' field, equal to the Request Items 'opened_by' user.
Here is what I am currently trying, without luck. Any thoughts are appreciated:
var req = new GlideRecord('sc_req_item');//look at the Request Item req.addQuery('parent',current.sys_id); req.query(); task.assigned_to = req.opened_by;//take the assigned to and set it to the Request Item's 'opened_by' field