Created
May 6, 2015 13:38
-
-
Save kidhasmoxy/89898b00bd2b2bccd0b4 to your computer and use it in GitHub Desktop.
Quick snippet to use for setting a close date based on the open date for the Data Generator
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (target.state == 3 || target.state == 4 || target.state == 7){ | |
var opened = new GlideDateTime(target.opened_at); | |
var end = opened.addDaysUTC(5); | |
answer = DataGeneratorUtils.generateRandomDate( opened, end); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment