Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

To trigger notification when the due date on problem task is approaching (i.e., less than 2 days)

Rahul Raja Sami
Tera Guru

Hi I have a field on problem task called due_date and I want to trigger a notification when the due date is approaching (i.e., less than 2 days).
created a BR, related Event and Notification for this
BR

var today = new GlideDate();
if (current.due_date < today.addDays(2)) {
  current.comments = 'test';
	current.update();
	gs.eventQueue('notifyassign',current.due_date,current.assigned_to);
}

 

1 ACCEPTED SOLUTION

Rahul Raja Sami
Tera Guru

A Scheduled Job is created for the same, and this will trigger the Event. By using which a notification will be sent.

View solution in original post

1 REPLY 1

Rahul Raja Sami
Tera Guru

A Scheduled Job is created for the same, and this will trigger the Event. By using which a notification will be sent.