SLA stop condition
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-18-2017 08:46 AM
I need to configure our Response SLA stop condition with following requirement: SLA should be stopped when task gets updated by the member of the current assignment group.
I used condition Update by is javascript:gs.getUser().isMemberOf(current.assignment_group); but system does not like it.
Any ideas if this is possible to achieve?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-19-2017 02:13 AM
Maybe try adding a new field to the table in question to flag True/False. Have a before insert/update business rule that will set the flag to true if updated by a member of the current assignment group (false if not) - then run your stop condition on the new flag field on the record, using the standard filter conditions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-20-2017 02:27 AM
Hi Lee, that would actually work. Would you mind helping me with script for business rule?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-20-2017 02:46 AM
Sure! I think you can use something very similar to what you started with:
(function executeRule(current, previous /*null when async*/) {
// Add your code here
if (gs.getUser().isMemberOf(current.assignment_group)) {
current.NEWFIELD = true;
}
else {
current.NEWFIELD = false;
}
})(current, previous);