SLA stop condition

Dawid2
Giga Guru

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?

7 REPLIES 7

leebooth
Kilo Expert

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.


Hi Lee, that would actually work. Would you mind helping me with script for business rule?


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);