@mention work_notes in a workspace

bmanard
Tera Contributor

I am trying to limit sys_user records in a business rule for the @mention functionality in work_notes while in a Workspace.  I have seen suggestions that work when you are not in a workspace, but have found no way to ensure this filter on the table is only applied in my specific workspace.  Are there any properties that could be accessed like a current workspace name or the html textarea name (work_notes)?  All of my attempts at pulling various properties have resulted in null or undefined.

This works for non workspaces, but there is no specific path that I've been able to find for mentions in a workspace.

 
        if (gs.action.getGlideURI() != '') {
            if (gs.action.getGlideURI().getMap() != '') {
                if (gs.action.getGlideURI().toString().startsWith('api/now/form/mention/record/')) {
                    current.addEncodedQuery('active=true^sys_class_name=sys_user');
                }
            }
        }
 
5 REPLIES 5

Our sys_user table has three sys_class_name types.  We want to restrict to "user" only for @mentions in workspace.