-
Bug
-
Resolution: Fixed
-
Medium
-
None
-
3
-
Severity 3 - Minor
-
14
-
Issue Summary
As shown in the image above, the value for the Date 1 field is 16/Jun/23 in the Date picker field, but in the error message, it shows as 15/Jun/23 5:00 PM. This happens because we convert the output time into the user’s timezone. The user’s time zone (https://id.atlassian.com/manage-profile/account-preferences?ref=jira&src=personalsettings), in this case, to replicate the issue it is America/Phoenix (GMT -7).
Ideally, if the Date 1 (field being compared with) is a date picker, then the output time should be kept the same as the time value in the Date 1 field.
Steps to Reproduce
- Set your timezone to "America/Phoenix" in your Account Preferences: https://id.atlassian.com/manage-profile/account-preferences?ref=jira&src=personalsettings
- Create a transition screen and enter two date picker fields in it.
- Create a transition from one status to another status.
- Add two "Date compare validators" to this transition.
- The first validator to check if the 1st field is greater than now or 0d.
- The second validator is to check if the 2nd field's date is less than the 1st field's date. Publish the workflow.
Expected Results
Ideally, if the Date 1 (field being compared with) is a date picker, then the output time should be kept the same as the time value in the Date 1 field.
Actual Results
- Now when we will make the transition, then we will observe that if we fill the date in the 1st field less than "now" or "0d" then it will throw an error stating that the 1st field date is less than today's date. But this 1st field date will be shown as 1 day prior date than the date that you have set in this field in the error message. This is due to the Bug
JRACLOUD-67444. - However, when we set the 2nd field's date to greater than the 1st field then we will get the error as expected stating that the 2nd field's date is greater than the 1st field as per the Date Compare validator. But in this error message as well the date of the 1st field is shown as 1 day prior date than the date that you have set in this 1st field.
Workaround
Currently there is no known workaround for this behavior. A workaround will be added here when available
- is related to
-
JRACLOUD-82395 Date Time Picker custom field does not respect comparison with NOW expression with a few hours of difference
- Closed
-
JRACLOUD-81686 [Tracking in issue links] Various issues related to misleading / generic workflow error messages
- Gathering Interest
- is resolved by
-
HIX-3365 Loading...
- mentioned in
-
Page Loading...