How to configure the Inactivity notification for problem record (xanadu version)

Research
Tera Guru

How to configure the Inactivity notification for problem record

I have created Inactivity event
and Notification on problem 
under who will receive - Assignment group of problem is working expected

Research_0-1744650968961.png

 

some of the fileds depricated in who will receive / adding scripts
please guide me
Thanks in advance

1 ACCEPTED SOLUTION

Hello @Research ,

 

Thank you for the clarification, I understand the requirement now.

Please follow these steps:

 

1) Create a new Event Registry record. I have called it "problem_and_problem_task.inactivity" but feel free to pick any other name that is appropriate.

RobertH_0-1744656462614.png

 

2) Create a new Script Action as shown below. It will listen to the "problem.inactivity" event that got triggered by your Inactivity Monitor. It then triggers our special "problem_and_problem_task.inactivity" event, with the Problem Task assignees passed as the first parameter.

 

RobertH_1-1744656556378.png

 

Here is the script:

var grTask = new GlideRecord('problem_task'),
	assignees = [];
grTask.addQuery('problem', current.getUniqueValue());
grTask.addNotNullQuery('assigned_to');
grTask.query();
while (grTask.next()) {
	assignees.push(grTask.getValue('assigned_to'));
}
gs.eventQueue('problem_and_problem_task.inactivity', current, assignees.toString());

 

3.) Update your existing Notification:

  • change the Event to "problem_and_problem_task.inactivity"
  • enable the Event parm 1 contains recipient checkbox

RobertH_2-1744656820520.png

 

Now the notification will be sent to the Problem Assignment group and the Problem Task assignees.

 

Regards,

Robert

View solution in original post

9 REPLIES 9

AmM01
Tera Contributor

I'm a bit confused. Could you please rephrase your question and provide a clearer screenshot. 
Thank you!

I want to send Problem inactivity monitor notifications for problem record - assignment group members
and its related problem tasks  assigned to "Users"
Inactivity Monitor: 
under system policy

Research_3-1744651712387.png

 

 

 

 

 

 

Hello @Research ,

 

Thank you for the clarification, I understand the requirement now.

Please follow these steps:

 

1) Create a new Event Registry record. I have called it "problem_and_problem_task.inactivity" but feel free to pick any other name that is appropriate.

RobertH_0-1744656462614.png

 

2) Create a new Script Action as shown below. It will listen to the "problem.inactivity" event that got triggered by your Inactivity Monitor. It then triggers our special "problem_and_problem_task.inactivity" event, with the Problem Task assignees passed as the first parameter.

 

RobertH_1-1744656556378.png

 

Here is the script:

var grTask = new GlideRecord('problem_task'),
	assignees = [];
grTask.addQuery('problem', current.getUniqueValue());
grTask.addNotNullQuery('assigned_to');
grTask.query();
while (grTask.next()) {
	assignees.push(grTask.getValue('assigned_to'));
}
gs.eventQueue('problem_and_problem_task.inactivity', current, assignees.toString());

 

3.) Update your existing Notification:

  • change the Event to "problem_and_problem_task.inactivity"
  • enable the Event parm 1 contains recipient checkbox

RobertH_2-1744656820520.png

 

Now the notification will be sent to the Problem Assignment group and the Problem Task assignees.

 

Regards,

Robert

Robert H
Mega Sage

Hello @Research ,

 

I am not sure I understand. You say you have configured a notification to the Assignment group and it is working as expected? What is your question or issue then? What do you mean with your last sentence about deprecated fields and scripts?

 

Regards,

Robert