Advanced Reference Qualifier not working in dictionary override assignment group HR Case Management

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2019 05:04 PM
Hi SN Community,
I have a requirement to have the assignment group field on an HR case form within HR Case Management Application (Human Resources: Core) show a specific list of groups based on the currently logged in user. The HR Case table extends task and all other case type tables then extend from the HR Case table.
Task Table ---> HR Case Table ---> all other HR Case tables
Steps to accomplish goal:
1. Perform a dictionary override on assignment group.
2. Override reference qualifier.
3. Create advanced reference qualifier via script include to reference in override.
I did this and was unsuccessful.
I tested my script include via creating my own "assignment group" field and placing the advanced reference qualifier there, which did yield the desired results so I am confident that this issue is not with the script include itself.
"Test Assignment Group" was configured as follows:
The assignment group field on task table is configured in the following way:
My dictionary Override is the following:
And my script include:
I even tried placing the script include in the global application, but that did not work either. I would appreciate any guidance anyone can offer as I am at a loss.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2019 05:11 PM
on your script include
try doing something like
if(gs.getUser().isMemberOf(SYS ID of group)){
//Do something...
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2019 05:35 PM
Thank you for answering Mike, but the script include works when used in the u_assignment_group field I created to test it. It just does not work in the dictionary override on assignment group field.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2019 05:38 PM
try doing below
javascript: new sn_hr_core.hrGroupAssignment().groupDisplay();
dictionary Override is on Global app and your u_assignment_group is in scoped app

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2019 05:56 PM
Still nothing 😞