...
You must select the date field, the comparison condition, the date expression itself, and optional whether to include the time part for comparison. For example:
For information on how to configure a validator in JIRA, see the JIRA documentation.
Include Page Custom Error Message Custom Error Message
Example
A workflow is configured so that the 'Resolve' transition has the 'Date Expression Compare' validator where 'Due Date' > '5d'. If a user attempts to resolve an issue on this workflow, where the 'Due Date' is less than 5 days from now, the validation will fail and the transition will not be completed.
...