- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2022 02:03 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2022 06:37 AM
Hi Anmol,
Use the below script in advanced condition
var inc_man = GlideRecord('sys_user_has_role');
inc_man.addQuery('user',current.assignment_group.manager);
inc.man.addQuery('role','da3186d90bf63200ecfd818393673a62'); //convert this into propery and use sys_id of incident manager role
inc_man.query();
if(inc_man.next())
{
answer = true;
}
Regards,
Deepankar Mathur
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2022 02:10 AM
Hello Anmol,
There is no direct way to sect the role, but you can create an event triggered based on your condition.
i.e. assignment_group changes & manager has incident manager role. You can create a business rule and trigger events only once these conditions are satisfied.
Mark correct if this helps you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2022 02:17 AM
Hi Anmol,
See the below screen shots to configure a 'Notification' record to achieve this.
To help others, please mark correct and/or helpful.
Thanks,
Robbie
To get to the 'Manager.Roles' field, you need to navigate to the 'Show Related Fields' option in the drop down list as below
Configure the rest of the Notification record as follows:

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2022 02:19 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2022 03:46 AM
Hello Deepankar,
The above Example Helped me in understanding my solution. But do you have any idea about how to do it using script advance view.
Regards,
Anmol Soldier