-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Low
-
Component/s: Workflows - Transitions
-
None
-
1
-
Severity 3 - Minor
Issue Summary
The "Validate a field" workflow validator configured with a Date/Time field and the expression "Earlier than or same as now" has two problems:
- The now expression only evaluates the date (e.g., April 28), not the full date and time (e.g., April 28, 15:30) when evaluated using the Expression tab
- There is no option/checkbox to Include Time in the comparison when using Expression.
Steps to Reproduce
- Add a custom field of type Date Time Picker (e.g., "Start Date/Time") to an issue type.
- Edit the workflow for that issue type and add a "Validate a field" validator on a transition.
- Configure the validator so that Start Date/Time must be "Earlier than or same as" the expression now.
- Publish the workflow.
- Open an issue using that workflow and set Start Date/Time to today with a future time (e.g., today at 23:30 when the current time is 15:00).
- Attempt the transition.
Expected Results
The expression comparison tab should include an option to "Include time" the same way the Field comparison currently does (see image)

Actual Results
There is a mismatch in the level of comparisons between fields and expressions for Date/Time field.
Workaround
In the workflow editor, within the "Validate a field" window:
- Click on the "Field" tab and check the "Include time" checkbox.
- Switch back to the "Expression" tab and verify the expression values are still correct.
- Important: You must switch back to the Expression tab before clicking Update. If you click Update while still on the Field tab, the expression values will be removed.
- Click Update, then Update workflow.
This appears to fix both the time evaluation and the timezone issues.