- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2023 02:58 AM
Hi everyone,
in the @mention function in journal fields, the matching User Names pop up as choices. However, there is no way to distinguish between who is who for users with identical names:
Is it possible to add the User ID in the results list, so we can see who is who? Something like this:
Or is there some other way to determine who is who?
I would have expected this to be a quite common requirement but can't find any post or info about it.
Thanks in advance -Parker
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2023 04:39 AM
It can be done:
Update the sys_user name dictionary item. The calculated item can do the same checks for @mention and display a different calculated value there.
Example...
// At the end of the calculated value script, add the below
if (gs.getSession().isInteractive()) { // only do for interactive sessions
if (gs.action.getGlideURI() != "") {
if (gs.action.getGlideURI().getMap() != '') {
if (gs.action.getGlideURI().toString().startsWith('api/now/form/mention/record/')) { // @ mention is being used
current.user_name; // return user_id field - change this combo to be anything you would like
}
}
}
}
If helpful please mark as Helpful/Correct
Regards
Paul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2023 04:39 AM
It can be done:
Update the sys_user name dictionary item. The calculated item can do the same checks for @mention and display a different calculated value there.
Example...
// At the end of the calculated value script, add the below
if (gs.getSession().isInteractive()) { // only do for interactive sessions
if (gs.action.getGlideURI() != "") {
if (gs.action.getGlideURI().getMap() != '') {
if (gs.action.getGlideURI().toString().startsWith('api/now/form/mention/record/')) { // @ mention is being used
current.user_name; // return user_id field - change this combo to be anything you would like
}
}
}
}
If helpful please mark as Helpful/Correct
Regards
Paul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2023 10:58 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2024 02:02 AM
Hi
This works only in UI16, it is not working for SOW view(only while MENTION scenario)
It started showing calculated names always in SOW. Any help here?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2024 11:42 PM
@Paul Curwen Thank you so much. This was very helpful. Curious? If I enter my own name, this new functionality I added doesn't display. Any suggestions on making sure this new functionality displays even if I am trying to @mention myself? Thank you for your time.