Change Task creation based on a change condition
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2023 11:53 PM
Hi All,
I need to create a change task once a particular condition matches on the Change request.
I have added one workflow activity for creating the Task and written the script to set the field values but it is not setting the field values after creation of change_task.
Can someone please help where i am doing it wrong?
var gr = new GlideRecord('change_task');
gr.addQuery('change_request', current.sys_id);
gr.query();
while (gr.next()) {
gr.due_date = current.start_date;
gr.assignment_group = current.assignment_group;
gr.cmdb_ci = current.cmdb_ci;
gr.description = "Test";
gr.update();
}
0 REPLIES 0