Hide "Close Task" Button in Service Operations Workspace Until Task Is Assigned to Logged-in User
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
Hi Community,
I need some guidance regarding the Close Task button on Catalog Task (sc_task) records in Service Operations Workspace.
Currently, the Close Task button is available to all users who can access the task. As per our requirement, the button should:
- Not be visible when the task is unassigned.
- Not be visible when the task is assigned to another user.
- Be visible only when the task is assigned to the logged-in user.
Example:
Assigned To Logged-in User Close Task Button

| Empty | User A | Hidden |
| User B | User A | Hidden |
| User A | User A | Visible |
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
so where are you stuck?
Add condition in that UI action
Something like this
current.assigned_to != '' && current.assigned_to == gs.getUserID()
💡 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
