Error with this code, script include is working fine. but state is not updating
var obj = new VECReviewUtils();var isComplete = obj.areAllReviewsCompleted(current.sys_id);if (!isComplete) { gs.addErrorMessage('All review tasks must be completed before approval.'); action.setRedirectURL(current); current.setAbortAction(t...