Hi,
I added a script validator on create screen that user take due date on today or future date not old date.
When testing the script, i allow to put old date and the issue is created.
Please see script below:
issue.dueDate.before(Calendar.getInstance().getTime())Thanks,
Swarna
Hi @Swarna Radha ,
You said 'on today or future date not old date.' but use opposite 'before'. And Your 'error msg' mean that duedate must be old date.
'issue.dueDate.before(Calendar.getInstance().getTime())' - that mean condition 'DueDate is before (today) ?'
If You want deny set old date try use 'after'.
B.R.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please help me with simple scripted validator "Due date should not be the past date"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.