Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

Need to Restrict the usage of "Closed" state for incidents in List view

PavithraDeB
Tera Contributor

@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.
Screenshot 2026-03-11 174731.png

Screenshot 2026-03-11 173431.png




1 REPLY 1

Ankur Bawiskar
Tera Patron

@PavithraDeB 

before update BR should work when you edit from List as well in workspace

see this gif

stop state value from list.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