SLA due is showing UNKNOWN
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2020 01:50 AM
SLA Due is showing Unknown, So based on created field SLA due should auto populate but it will included 48 hours Example: Created is 2020-07-27 13:26:58 So SLA Due should be 2020-07-29 13:26:58
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2020 02:01 AM
Hey Naveen,
Refer the threads, it might help you:
Mark Correct and Helpful if it helps!!!
Best Regards,
Namrata.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2020 05:18 AM
I have written below script but its not working
var gr = new GlideRecord("sc_task");
gr.addQuery("task", current.sys_id);
gr.orderBy("sys_created_on");
gr.query();
if (gr.next()) {
//gs.addInfoMessage("sys_created_on " + gr.sys_created);
current.sla_due = gr.sys_created_on;
current.update();
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2025 02:41 PM
Hi Please try the below business rule and code
1. create a business rule on SLA task table
Script:-
