How to send notification if state is Pending for more than 3 days
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-12-2018 08:21 PM
Hi,
Scenario 1
If Ticket status is On Hold state more than 3 days means we need to send 1st notification to user
Scenario 2
If the same ticket status is On Hold state more than 6 days means we need to send 2nd notification to group
The notification days will be change based on the customer so that we are referring customer and days from another table
Ex : ABC customer 1st Notification Day 3 and 2nd Notification Day 6
Ex : XZY customer 1st Notification Day 4 and 2nd Notification Day 5
Please help me how to achieve this
Thanks
- Labels:
-
Best Practices
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-12-2018 08:39 PM
Use scheduled jobs

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-12-2018 08:40 PM
I think, you can have a scheduled jobs (can be run everyday) to check the date difference between current date and when the ticket was put on hold and then, if it's for customer ABC and if the date difference matches with the days given in another table then trigger an event to send the notification.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-13-2018 02:16 AM
HI Ramesh,
One question before i provide you the script:
Do you want weekends as well?
Thank you,
Ashutosh Munot
Please Hit Correct, Helpful or like,if you are satisfied with this response.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-13-2018 04:06 AM
Yes Ashutosh, weekend also
1. I'm going to create one custom field in Incident table and BR, whenever state is change to Pending BR will run and it will query the email notification days from another table and it will add the current update date
2. Then i will run scheduled job daily basis if the schedule job execute date custom field date is matching means notification will trigger..
...
Please provide your thoughts or provide inputs on my scenario
Thanks