Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2020 11:00 AM
Hello again
The script section there in the task activity is for what will be set UPON CREATION, of the task. Not for after. Without full context, this is a solution for a one-time catalog item task.
If you want to assign someone to the task AFTER it's closed, then you can create a run script activity and place that right after the task with script to assign it to that user.
var gr = new GlideRecord('sc_task');
gr.addQuery('request_item', current.sys_id);
gr.OrderByDesc('sys_updated_on');
gr.setLimit(1);
gr.query();
if (gr.next()) {
gr.assigned_to = current.variables.xxxxxx;
}
Please mark reply as Helpful/Correct, if applicable. Thanks!
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!