
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2019 11:01 AM
Hello,
I am trying to setup a simple email notification to send when an additional comment is added on a resolved or closed ticket. The problem I am running into is that it also sends while the incident is changing to the resolved state (which it shouldn't). The reason it is sending is because we have a mandatory comment field that needs filled out as they resolve incidents. The conditions are currently set to:
- Additional Comments - changes
- State - is one of - resolved, closed
I believe I need to scrap the above conditions and add an Advanced Condition that only sends when an additional comment is entered on an incident that was previously resolved and I'm not sure how to write it. Any help would be highly appreciated!
Thank you,
Joe
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2019 11:08 AM
Hi Joe,
Try adding an additional condition
Resolved time is before the current time in the advanced script
Thanks,
Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2019 11:08 AM
Hi Joe,
Try adding an additional condition
Resolved time is before the current time in the advanced script
Thanks,
Kumar

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2019 11:34 AM
Hi Joe,
You can create a new Event(Say, closed.incident.commented) in event registry on your Incident table, write a Before Update Business rule and add filter condition : worknote | changes
if((current.state == '7' || current.state == '6') && previous.state == '7' || previous.state == '6')) //Checking state is resolved OR closed
{
gs.eventQueue('closed.incident.commented',current,current.assigned_to,' ');//trigger event and send Assigned To as parameter(or to whom you want to send notification)
}
In your notification, select send when event is fired select the event you created (closed.incident.commented), and check the event parm1 contains recipient.
Mark If Correct/Helpful.
Regards,
Ajay

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2019 12:52 PM
I figured it out by adding another condition:
Resolved - before - last minute.
Thanks for the help guys!
Joe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2019 01:04 PM
Joe,
This is what I answered in my comments.
Thanks,
Kumar