- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks 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:
| Empty | User A | Hidden |
| User B | User A | Hidden |
| User A | User A | Visible |
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @priyanshp4 ,
You can achieve this by updating the existing Close Task UI Action condition on the Catalog Task (sc_task) table.
Steps to implement:
Open the following UI Action record:
Append the following checks to the existing condition:
&& !current.assigned_to.nil() && current.assigned_to == gs.getUserID()Save the UI Action and test it in Service Operations Workspace.
If you find this solution helpful, Mark this response as Helpful and Please Accept the solution.
Regards,
Sandesh Powar
ServiceNow Rising Star
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks 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! 🙏
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
HI Ankur, I want to know where i can configure this as it is part of workspace not the form itself.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
it's UI action on sc_task, I could see
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @priyanshp4 ,
You can achieve this by updating the existing Close Task UI Action condition on the Catalog Task (sc_task) table.
Steps to implement:
Open the following UI Action record:
Append the following checks to the existing condition:
&& !current.assigned_to.nil() && current.assigned_to == gs.getUserID()Save the UI Action and test it in Service Operations Workspace.
If you find this solution helpful, Mark this response as Helpful and Please Accept the solution.
Regards,
Sandesh Powar
ServiceNow Rising Star