I want to create a date validator. The below code works
issue.get("Priority date for contract execution")>= new Date() + 14
but the problem is I'm using script runner to hide the above field based on answers the user selects.
if (issue.get("Does this contract need to be reviewed and approved by legal?") == "Yes") { issue.get("Priority date for contract execution")>= new Date() + 14 }
so I created the above if statement to test the value of a question.
Is there something wrong with my code or there is way to create this same date validator with script runner.
To get value from transition screen you should use
issue.?get("Does this contract need to be reviewed and approved by legal?") == "Yes"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.