Scheduled Job

indrajeetma
Tera Guru

 If an incident is open for 24 hours, 48 hours or 72 hours, a notification should be sent to the assignment group manager to take action on the incident.

 

give me step by step approach like when incident is created exact before 24 hrs or exact before 48 or 72 send an notification 
is there any other way rather than schedule job? 
give me step by step approach

2 REPLIES 2

Ravi Chandra_K
Kilo Patron
Kilo Patron

Hello @indrajeetma 

You can also utilise flow designer for this requirement.

you can try using wait for duration or wait for relative duration actions and achieve this requirement.

 

please mark the answer as helpful and correct if helped 

Kind Regards,

Ravi Chandra 

Runjay Patel
Giga Sage

Hi @indrajeetma ,

 

1. you can use below code to get the hours in your schedule job.

 

var datetime = new GlideDateTime(record.sys_created_on).toString().split(" "); //Replace record with your glide record
var time = datetime[1].split(":");
var hour = time[1];


2. now add if condition to check 24,48 and 72 hours and trigger the notification using he.eventQueue()

 

3. create one event based notification .

 

Accept the solution if it worked