- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2025 10:17 AM
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
some of the fileds depricated in who will receive / adding scripts
please guide me
Thanks in advance
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2025 11:55 AM
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.
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.
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
Now the notification will be sent to the Problem Assignment group and the Problem Task assignees.
Regards,
Robert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2025 10:20 AM
I'm a bit confused. Could you please rephrase your question and provide a clearer screenshot.
Thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2025 10:27 AM - edited 04-15-2025 05:55 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2025 11:55 AM
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.
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.
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
Now the notification will be sent to the Problem Assignment group and the Problem Task assignees.
Regards,
Robert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2025 10:21 AM
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