Way to close list view incidents without blocking auto closure job
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
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! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
40m ago
HI @MouktikB ,
you can add condition in the BR like
updated by IS NOT system
or
you can go the approach shared by @Ankur Bawiskar with gs.getSession().isInteractive()
Please mark my answer as helpful/correct if it resolves your query.
Regards,
Chaitanya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
32m ago
When I created the Data policy, I have used this condition as Updated by is not system. Does that help?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
24m ago
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! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
