Hi,
How to hide the future date .
I.e when we click on the custom field of type date picker it has to show only past and present date. but not future date.
please help me the work around for this.
any add on suggession with work around can be accepted.
Thanks,
Abhishree Nagesh.
Hello @Abhishree Nagesh
Thank you for reaching out.
Per your description, it seems that you have a date picker custom field that you would like to restrict to only be added with past dates by the users. Is that correct?
You can use the Date Compare Validator provided by the JSU Automation Suite for Jira Workflows app to do it, however, it will only work for issue transitions, so you would need to remove the field from your edit screen. These would be the steps:
1 - Navigate to your project > Project Settings > Screens and remove the date picker from the edit screens of your project
2 - Navigate to Project Settings > workflows > Edit > Add screens in your workflow transitions containing the Date Picker field
3 - In the transitions where the Date Picker is added (Including the create transition), add the Date Compare Validator, configuring it like displayed below:
![]()
4 - Publish your workflow draft
Doing the steps above, the user will only be able to change the field when transitioning the issue and will not be able to set future dates on that.
Let us know if this option works for you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.