set the incident state to closed if incident resolved time is greater than 5 minutes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2024 02:18 AM
Hi my requirement is after incident has been resolved , if resolved time is greater than 5 min , automatically set the incident state to closed .
I have tried , but I am not getting result . please correct me where I am wrong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2024 02:23 AM
Hello @Ashok Kumar ,
Can you please check if backend names of your state choices "Resolved " and "Closed" are correct ?
Also when are you trying to trigger the BR ? Is there any condition ? If yes please check if its satisfying the condition and also if its satisfying make sure that its past 5 Minutes after incident is resolved and then try
If this helped you mark the answer correct
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2024 02:36 AM
Yes Mohith backend names are correct , and I have not mentioned any condition in when to run
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2024 02:30 AM - edited 01-23-2024 02:33 AM
You are using wrong approach - Business Rules are triggered on given event happening and you need to check for condition to make action, so you must either do CRUD or display given record in order the BR to trigger itself. So it wont be useful here going this way...
I would go with using simple flow or workflow, triggered on incident state changing to Resolved and waiting for 5 mins , then closing the incident and setting it to inactive.
Other approach is using scheduled job or even fire event and handle it from there - but easiest is with workflow / flow.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2024 02:31 AM
Check is this property impacting
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************