Way to close list view incidents without blocking auto closure job

MouktikB
Tera Contributor

There is a requirement to restrict users from closing incidents (p1 and p2) in list view without filling up a certain field. Created a BR to do the same and it worked as expected but also blocked the auto closure scheduled job. Created a data policy to replace that but wondering if that would also block the auto closure job? Please suggest if there are any better ideas and will not at all affect the auto closure job. This has led to quite some incidents which did not close automatically.

5 REPLIES 5

Ankur Bawiskar
Tera Patron

@MouktikB 

in your before update business rule you can check interactive session and add in conditions so when it runs with scheduled job BR condition fails

gs.getSession().isInteractive()

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Chaitanya ILCR
Giga Patron

HI @MouktikB ,

 

you can add condition in the BR like 

updated by IS NOT system

 

ChaitanyaILCR_0-1770898620449.png

 

 

or

you can go the  approach shared by @Ankur Bawiskar  with gs.getSession().isInteractive()

ChaitanyaILCR_1-1770898689229.png

 

Please mark my answer as helpful/correct if it resolves your query.

Regards,
Chaitanya

 

When I created the Data policy, I have used this condition as Updated by is not system. Does that help?

@MouktikB 

better to update your existing BR with that condition, rather than touching/creating data policy

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader