SHARE
TWEET

Untitled

a guest Apr 22nd, 2019 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (function executeRule(current, previous /*null when async*/) {
  2.    
  3.     var assignee = new SPOC_TicketUtils();
  4.    
  5.     if(!assignee.hasCapacity(current.assigned_to+'', current.u_capacity)){
  6.        
  7.         gs.addErrorMessage('Reaching maximum ticket capacity for the chosen assignee.');
  8.         current.setAbortAction(true);
  9.        
  10.     }
  11. })(current, previous);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top