Question: Create a field on Incident form called Expected Data, if incident move to Pending this date will be add 7 days from current date
Object: Business Rule – Before
Class: GlideDateTime
Script:
(function executeRule(current, previous / null when async / ) { // Add your code here var grDate = new GlideDateTime(); grDate.addDaysUTC(7); current.due_date = grDate; })(current, previous);
No responses yet