Need to Restrict the usage of "Closed" state for incidents in List view (only closed state)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
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
while exploring, i could notifce that the oncell edit will not work in SOW (Not sure , may be there is a way)
Any help would be greatly appreciated.
i wanted this restriction only for closed state in LIST EDIT and not in form level.
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
Hi @PavithraDeB
To restrict updating incident states to "Closed" state from the List View in Servicenow, use
1. Create a list edit ACLon incident
- Type:list_edit
- Operation: list_edit
- Table: Incident
- Field: State
sample screen shot:
2. Using OnCellEdit Client Script .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
the question is for SOW and not for native.
I could see in my PDI the onCell Edit and list_edit ACL approach doesn't work in SOW list.
It would be nice if you could share working screenshots as well for your points which worked for you.
This will help members reach answer quickly
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
Few Approaches
Approach 1
you can use before update BR on that table and stop the update using current.setAbortAction(true) if state Changes to Closed
Output: BR is stopping the update, enhance the condition
Note:
-> list_edit ACL won't be stopping editing field in SOW List
-> on cell edit doesn't work in SOW list
Approach 2 -> Another way is disable list editing for all fields at the UX List level
-> go to this table "sys_ux_list" and search your list
-> check the checkbox for "Hide Inline Editing"
check this link as well which talks about SOW
How to enable Inline Editing for this list?
💡 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 || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
