diff --git a/TaskNotifications/readme.md b/TaskNotifications/readme.md new file mode 100644 index 0000000000..c5c5bb57fd --- /dev/null +++ b/TaskNotifications/readme.md @@ -0,0 +1,7 @@ +# Enhanced Task Reminder Notification + +This script sends a daily reminder notification to users who have overdue tasks. It helps ensure tasks are completed on time and improves accountability. + +## Usage +- Place this script in a Script Include or schedule it as a daily background job. +- Customize the query in `task.addEncodedQuery` for different conditions if needed. diff --git a/TaskNotifications/script.js b/TaskNotifications/script.js new file mode 100644 index 0000000000..b4362111fa --- /dev/null +++ b/TaskNotifications/script.js @@ -0,0 +1,19 @@ +(function executeReminder() { + // Query for overdue tasks + var task = new GlideRecord('task'); + task.addEncodedQuery('due_date