How to put an icon next to members of a particular group for incident ticket.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-21-2023 03:13 AM
How to put an icon next to members of a particular group for incident ticket (when impactes user is a member of paeticular group and incident is submitted for him).
Like we put VIP icon next to VIP users.
Please suggest.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-21-2023 03:24 AM
Hi @Nikita50 ,
The easiest way to do this would be to create a true/false field on the user form to identify these specific users that way. You could then copy and modify the 'Highlight VIP Caller' client script, and instead of this:
//check for VIP status
if (caller.vip == 'true') {
Check your custom field:
//check for Whatever status
if (caller.u_custom_field == 'true') {
The caveat being there is some manual administration of these user accounts, unless you determine via your user creation or import process a way to identify these users automatically. As an example, we can identify a user is VIP via our LDAP imports if they have a certain employee level and above (custom attribute in AD).
If you decide the way to handle this is via a role assignment, you can use the g_user functions to check 'hasRole':
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-21-2023 03:29 AM
refer the OOB client script for VIP icon and create a new one for your case.
Ensure you check for group membership using GlideAjax
what did you start with and where are you stuck?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-25-2025 05:09 AM
Hope you are doing good.
Did my reply answer your question?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader