- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-03-2016 01:00 AM
I want to trigger notification only when priority get upgrade For Example- (P3 to p2 or p1),(p4 to p3 or p2 or p1) like this.
I tried by using CHANGESFrom and CHANGESTo but not working can any one help me with this.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-04-2016 02:41 AM
Hi Anupriya,
It can be done by a single line condition that will check its upgarding or downgrading.If its upgrding then it will fire a event and you will get notification.
Try this script:
Business Rule(After)
Update: Marked True
(function executeRule(current, previous /*null when async*/) {
var curP=current.priority;
var preP=previous.priority;
if(preP>curP){
gs.addInfoMessage("Priority has been upgraded from"+" "+preP+" to "+curP);
gs.eventQueue("Incident_priority_upgrade",current,current.caller_id, current.assigned_to);
}
})(current, previous);
kindly let me know if its resolves your issue.
Mark helpful or correct answer if its applicable.
Thanks,
Farukh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-06-2022 02:09 PM
This script send an email notification even if we update other field detail. e.g If we updated Description detail then also script gone executed.