set the incident state to closed if incident resolved time is greater than 5 minutes

Ashok  kumar
Tera Contributor

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 Screenshot (42).png

4 REPLIES 4

Mohith Devatte
Tera Sage
Tera Sage

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

Yes Mohith backend names are correct ,    and I  have not mentioned any condition in when to run 

Community Alums
Not applicable

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.

Dr Atul G- LNG
Tera Patron
Tera Patron

Check is this property impacting

 

LearnNGrowAtul_0-1706005888401.png

 

*************************************************************************************************************
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]

****************************************************************************************************************