Send Notification to assigned to, manager user when incident is not updated on last 3 days

Maanasa Allu
Tera Contributor

Hello Everyone,

 

Could you send a Notification to the (assigned to, manager) user when an incidents is not updated in the last 3 days?

 

Regards,

Manasa.

2 REPLIES 2

Rahul Priyadars
Giga Sage
Giga Sage

Write a Schedule Job for same 

-->Fetch Incidents using query like CurrenttimeStamp-Updated>=3 Days (u can change this to seconds)

-->Use Glide record on Incident table using above query

-->Traverse each Incident untill you reach Last Record

--> In loop write Code to Fetch Assigned To Manager Information from SYS_USER Table

Use his email ID to fire Notification (How ? Follow below URL for Steps- https://www.servicenow.com/community/developer-articles/fire-an-email-notification-from-a-schedule-j...)

-->end loop and exit

 

OR Use Concept of INACTIVITY MONITOR - 

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0965127

 

The simple way is to create an inactivity monitor with the required conditions and enable OOB notification "Incident Inactivity for ITIL" and configure "Who will receive" section.

 

How  to configure Inactivity Monitor:

  1. Navigate to "System Policy > SLA > Inactivity Monitors".
  2. Click on "New" and populate necessary fields.
  3. RahulPriyadars_0-1686624218991.png

     

     Click on update. (For testing purposes, set the Wait field value to 1 minute).

  4. Now Navigate to "System Notification > Email > Notifications".
  5. Search for "Incident Inactivity for ITIL" and open it.
  6. Enable the "Active" field if not done before.
  7. Goto "Who will receive" section.
  8. Unlock "Users/Groups in fields".
  9. Select "Assigned to" field and click on "+" icon to expand the "Assigned to" field.
  10. Select "Manager" and move it to right side box.RahulPriyadars_1-1686624218693.png

     

  11. Click on lock icon.
  12. Update the notification.

 

 

Hope this helps

Regards

RP

 

Tony Chatfield1
Kilo Patron

Hi, I would use a repeating SLA/OLA and configure a notification based on SLA breach.
This solution give you flexibility and control around service calendars\time zones and also delivers reportable data which can be used for both KPI's and service improvements.

Service Level Agreement (SLA) definition (servicenow.com)