- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2023 11:54 PM
Hi all,
I have a requirement where I need to create a notification before one day of SLA breaches. Please provide me with the steps of how can we achieve this.
Thanks,
Amol
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2023 12:16 AM
Hi @Amol Pawar ,
we can't define conditions directly in notification because notification can be triggered When event is fired or record is inserted or updated.
Here is an example for "Send notification 1 hour before SLA breaches" :
What you need to do is, you need Create a event(sla.breach.one.hour.before) on task_sla table in event registry and trigger it from run script activity before one hour as below
var breachTime = current.planned_end_time ;
gs.log("breachTime: "+breachTime);
var gdt = new GlideDateTime(breachTime);
gdt.addSeconds(-3600);
gs.log("reminder date:"+gdt);
gs.eventQueueScheduled ("sla.breach.one.hour.before" , current , gs.getUserID(), gs.getUserName(), gdt);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2023 12:16 AM
Hi @Amol Pawar ,
we can't define conditions directly in notification because notification can be triggered When event is fired or record is inserted or updated.
Here is an example for "Send notification 1 hour before SLA breaches" :
What you need to do is, you need Create a event(sla.breach.one.hour.before) on task_sla table in event registry and trigger it from run script activity before one hour as below
var breachTime = current.planned_end_time ;
gs.log("breachTime: "+breachTime);
var gdt = new GlideDateTime(breachTime);
gdt.addSeconds(-3600);
gs.log("reminder date:"+gdt);
gs.eventQueueScheduled ("sla.breach.one.hour.before" , current , gs.getUserID(), gs.getUserName(), gdt);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2024 12:17 PM
How to send notification before 2 days of SLA breach? Don't we need to add any if condition in the above mentioned Run Script?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2023 03:15 AM
Thank you for your reply