How to put an icon next to members of a particular group for incident ticket.

Nikita50
Tera Expert

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.

3 REPLIES 3

Community Alums
Not applicable

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':

Ankur Bawiskar
Tera Patron
Tera Patron

@Nikita50 

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?

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

@Nikita50 

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.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader