- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2015 03:55 AM
Hello,
I'm experiencing an issue with a notification not sent to the task assignment group when a service catalog task is commented.
The Additional Comments section on the Catalog Task, is on sc_task.request_item.comments
When I define the condition for "when to send", I don't see Additional comments in the list under Requested item fields.
I try to trigger the event with "Event is fired" instead of Insert/Update and defined a business rule on the requested item table, but it doesn't send the notification as well.
These are screenshots of the business rule, event registry and notification:
Notification:
Event registry:
Business rule:
If someone can help me with this issue will be great.
Thanks a lot in advance!
Maria
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2015 12:19 PM
In the script where you trigger the event sc_req_item.commented you can add the following code:
var grpList = [];
var tsk = new GlideRecord('sc_task');
tsk.addQuery('request_item',current.sys_id);
tsk.addQuery('active','true');
tsk.query();
while (tsk.next()){
grpList.push(tsk.assignment_group+'');
}
gs.eventQueue("sc_req_item.commented",current, grpList.join(','),gs.getUserName());
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2015 05:19 AM
Now since you are registering event, do not make notification conditional.
Rather make it to fire when event is registered (I hope event is getting registered).
there is an option to make notification to fire when event is getting registered
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2015 05:29 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2015 07:24 AM
Hello Maria,
If you see, event is getting registered which you have configured on sc_req_item.
Even name is sc_req_item.commented.
Now go to notification,
Configure notification on sc_task table, and define 'Send When' to even is fired and 'Event Name' to sc_req_item.commented. Do not define any condition now. This is now event driven notification and not he conditional one.
Add recipients in who will receive section and add message in what it will contain.
Kindly configure this and let me know if it works.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2015 10:49 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2015 10:57 AM
I have done this before by triggering the email on the RITM table. You will need to write a script to get the assignment groups for the open tasks and set in one of the parameter fields when the event is triggered. The notification will need to send to 'parameter set'.