Need to Restrict the usage of "Closed" state for incidents in List view
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago - last edited 2 hours ago
@Ankur Bawiskar
Please do help me to clarify below concerns.
Requirements: Need to Restrict the usage of "Closed" state for incidents in List view (only closed state)
Through a client script i can achieve it in legacy view but the ame doesnot applies to Service operation workspace
function onCellEdit(sysIDs, table, oldValues, newValue, callback){
var saveAndClose = true;
if(newValue == 7)
alert("You cannot change the State value to 'Closed' from a list view");
saveAndClose = false;
callback(saveAndClose);
}
while exploring, i could notifce that the oncell edit will not work in SOW
i tried to create a Business Rule, but the outcome is same, works for legacy and not for SOW
Any help would be greatly appreciated.

while exploring, i could notifce that the oncell edit will not work in SOW
i tried to create a Business Rule, but the outcome is same, works for legacy and not for SOW
Any help would be greatly appreciated.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
44m ago
before update BR should work when you edit from List as well in workspace
see this gif
💡 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 || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader

