The Zurich release has arrived! Interested in new features and functionalities? Click here for more

Send a notification to assignment groups manager when assignment group changes? Only send when the manager has ‘incident manager’ role.

Anmol Soldier1
Tera Contributor

how to select the role?

 

1 ACCEPTED SOLUTION

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

View solution in original post

8 REPLIES 8

Omender Singh
Tera Guru

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.

Robbie
Kilo Patron
Kilo Patron

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

find_real_file.png

To get to the 'Manager.Roles' field, you need to navigate to the 'Show Related Fields' option in the drop down list as below

find_real_file.png

Configure the rest of the Notification record as follows:

find_real_file.pngfind_real_file.png

dmathur09
Kilo Sage
Kilo Sage

Hi Anmol,

You would need to dot walk - Assignment group -> Manager -> Roles is "incident_manager"

find_real_file.png

Regards,

Deepankar Mathur

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