- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-12-2024 06:57 AM - edited ‎01-12-2024 07:11 AM
Hi
I would like to confirm that the "Assign to me" button in the HR Agent Workspace is not added by default by ServiceNow?
Or is it up to the companies and they can add it if they want. I am not sure why the button is not visible in the HR Case workspace view and the agent has to manually assign themselves, whereas it is available in the native UI.
In UX Form Actions (sys_ux_form_action) I don't see 'Assign to me' button for any HR Case table.
I know how to enable it in the UI Action (for HR Case, 'Workspace Form Button' is unchecked). What is the process behind this? Was it configured that way by design?
If anyone can shed some light on this, I would be grateful.
Thank you
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-12-2024 07:39 AM
@miro2 You assumption is correct the "Assign to me" button is not added by default in HR Agent workspace. You need to follow the following steps to make this button visible and function in HR Agent workspace.
1. Navigate to UI Actions in the backend. Filter Assign to me button for sn_hr_core_case table.
2.Scroll to the bottom and check the workspace related checkboxes, and add the script in the script field.
Here is the script for your reference.
function onClick(g_form) {
assignToMe();
function assignToMe() {
g_form.setValue("assigned_to", g_user.userID);
g_form.submit(g_form.getActionName());
}
}
Here is how the button looks on the workspace.
Hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-01-2024 08:20 AM
Hi @ahefaz1 - You are correct. Unchecking "Client" does enable the script to function as expected. Thank you for the follow-up!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-01-2024 08:51 AM
@Zach3 , I missed mentioning that in my first response.
Hope you are able to change your script to this shorter version.
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-01-2024 08:53 AM
@ahefaz1 - No worries, and yes, I was able to change the script and it is working as intended. Thanks again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-01-2024 09:31 AM