- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-05-2020 04:41 AM
Hi,
When any change ticket state update happens then it should send notification to assignee and assignment group mail id.
So I am following the OOB "Change request state change notification" notification and given the script as below.
It is generating the notification for all the state changes but only for Authorize state change notification is not sent.
Please help on this.
var cr = new ChangeRequest(current);
answer = (cr.changesToAssess() || cr.changesToAuthorize() || cr.changesToScheduled() || cr.changesToImplement() || cr.changesToReview() || cr.changesToClosed() || cr.changesToCanceled());
Thanks
Solved! Go to Solution.
- Labels:
-
Change Management

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-05-2020 04:58 AM
Hi,
Is the BR executed in authorised state? Because it seems the BR is not triggered.
Also this has to be done rightly in Notification. you dont need br for this.
Just create simple notification where condition is states changes and it will tirgger your notification.
Thanks,
Ashutosh

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-05-2020 04:58 AM
Hi,
Is the BR executed in authorised state? Because it seems the BR is not triggered.
Also this has to be done rightly in Notification. you dont need br for this.
Just create simple notification where condition is states changes and it will tirgger your notification.
Thanks,
Ashutosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-05-2020 05:48 AM
Yes, I have given the script condition in the notification itself. I didn't create a BR.
I also tried simple notification where condition is states changes and it is not even triggering notification for any state changes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-05-2020 08:02 AM
Hi Priya,
Did you update the OOB condition in the advanced condition section?
Can you share what update you did?
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-05-2020 10:26 PM
Hi Ankur,
I modified the OOB condition in the advanced condition section like below:
var cr = new ChangeRequest(current);
answer = (cr.changesToAssess() || cr.changesToAuthorize() || cr.changesToScheduled() || cr.changesToImplement() || cr.changesToReview() || cr.changesToClosed() || cr.changesToCanceled());
before I modified:
var cr = new ChangeRequest(current);
answer = (cr.changesToScheduled() || cr.changesToImplement() || cr.changesToReview() || cr.changesToCanceled());
Thanks