
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2023 06:26 AM - edited 08-08-2023 07:01 AM
My Requirement is an Updated Planned start and date in the Change request, But this date is not updated in the List of Change Tasks view, showing only the Previous date and time. It is not showing the latest date and time. Example: updated screenshots Please check once.
Thanks
Srinivas
Sidhu !
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2023 08:00 AM
Hi @Sidhu9 ,
You can write BR on change_request table like the one below, with the following script.
(function executeRule(current, previous /*null when async*/) {
var ctGr = new GlideRecord('change_task');
ctGr.addQuery('change_request', current.getUniqueValue());
ctGr.query();
while(ctGr.next()){
ctGr.planned_start_date = current.start_date;
ctGr.planned_end_date = current.end_date;
ctGr.update();
}
})(current, previous);
Anvesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2023 08:00 AM
Hi @Sidhu9 ,
You can write BR on change_request table like the one below, with the following script.
(function executeRule(current, previous /*null when async*/) {
var ctGr = new GlideRecord('change_task');
ctGr.addQuery('change_request', current.getUniqueValue());
ctGr.query();
while(ctGr.next()){
ctGr.planned_start_date = current.start_date;
ctGr.planned_end_date = current.end_date;
ctGr.update();
}
})(current, previous);
Anvesh