Uploaded image for project: 'Jira Platform Cloud'
  1. Jira Platform Cloud
  2. JRACLOUD-93370

Date compare validator error for Custom fields with Date Time picker failing comparison with or without the Include time part option enabled

      Issue Summary

      Date compare validator error for Custom fields with Date Time picker failing comparison with or without Include time part option enabled

      Steps to Reproduce

      1. On a workflow transition add a Date Compare Validator
      2. Select a Date time custom field a condition great ">" or great equal ">=" to an expression like now or >= 1d

      Expected Results

      When the transition is triggered the validator respects the time and expression configured.

      Actual Results

      The date and time are not respected with several hours of difference, with or without the Include time part option enabled.

      With the Include time part option enabled, it should respect a 24h difference, considering the hours the transition is triggered and the user timezone.

      With the Include time part option disabled, it should respect the start of the next date 00:00:00, considering the date the transition is triggered and the user timezone.

      Workaround

      The user in this case can use a date type custom field, so the start of day will be considered in the comparison.

            [JRACLOUD-93370] Date compare validator error for Custom fields with Date Time picker failing comparison with or without the Include time part option enabled

            Abhishek Chauhan made changes -
            Status Original: Needs Triage [ 10030 ] New: Gathering Impact [ 12072 ]
            Roger B. made changes -
            Component/s New: Administration - Workflows and Statuses [ 66293 ]
            SET Analytics Bot made changes -
            Support reference count New: 1
            Roger B. made changes -
            Description Original: h3. Issue Summary

            Date compare validator error for Custom fields with Date Time picker failing comparison with or without Include time part option enabled
            h3. Steps to Reproduce
             # On a workflow transition add a Date Compare Validator
             # Select a Date time custom field a condition great ">" or great equal ">=" to an expression like *now* or *>= 1d*

            h3. Expected Results

            When the transition is triggered the validator respects the time and expression configured.
            h3. Actual Results
            The date and time are not respected with several hours of difference, with or without the Include time part option enabled.

            \With the Include time part option enabled, it should respect a 24h difference, considering the hours the transition is triggered and the [user timezone|https://id.atlassian.com/manage-profile/account-preferences?ref=jira&src=personalsettings].

            With the Include time part option disabled, it should respect the start of the next date 00:00:00, considering the date the transition is triggered and the [user timezone|https://id.atlassian.com/manage-profile/account-preferences?ref=jira&src=personalsettings].
            h3. Workaround

            The user in this case can use a *date type* custom field, so the start of day will be considered in the comparison.
            New: h3. Issue Summary

            Date compare validator error for Custom fields with Date Time picker failing comparison with or without Include time part option enabled
            h3. Steps to Reproduce
             # On a workflow transition add a Date Compare Validator
             # Select a Date time custom field a condition great ">" or great equal ">=" to an expression like *now* or *>= 1d*

            h3. Expected Results

            When the transition is triggered the validator respects the time and expression configured.
            h3. Actual Results
            The date and time are not respected with several hours of difference, with or without the Include time part option enabled.

            With the Include time part option enabled, it should respect a 24h difference, considering the hours the transition is triggered and the [user timezone|https://id.atlassian.com/manage-profile/account-preferences?ref=jira&src=personalsettings].

            With the Include time part option disabled, it should respect the start of the next date 00:00:00, considering the date the transition is triggered and the [user timezone|https://id.atlassian.com/manage-profile/account-preferences?ref=jira&src=personalsettings].
            h3. Workaround

            The user in this case can use a *date type* custom field, so the start of day will be considered in the comparison.
            Roger B. made changes -
            Description Original: h3. Issue Summary
            Date compare validator error for Custom fields with Date Time picker failing comparison with or without Include time part option enabled

            This is reproducible on Data Center: (yes) / (no)
            h3. Steps to Reproduce
             # On a workflow transition add a Date Compare Validator
             # Select a Date time custom field a condition great ">" or great equal ">=" to an expression like *now* or *>= 1d*

            h3. Expected Results
            When the transition is triggered the validator respects the time and expression configured. The date and time are not respected with several hours of difference, with or without the Include time part option enabled.

            h3. Actual Results
            With the Include time part option enabled, it should respect a 24h difference, considering the hours the transition is triggered and the [user timezone|https://id.atlassian.com/manage-profile/account-preferences?ref=jira&src=personalsettings].

            With the Include time part option disabled, it should respect the start of the next date 00:00:00, considering the date the transition is triggered and the [user timezone|https://id.atlassian.com/manage-profile/account-preferences?ref=jira&src=personalsettings].

            h3. Workaround
            The user in this case can use a *date type* custom field, so the start of day will be considered in the comparison.
            New: h3. Issue Summary

            Date compare validator error for Custom fields with Date Time picker failing comparison with or without Include time part option enabled
            h3. Steps to Reproduce
             # On a workflow transition add a Date Compare Validator
             # Select a Date time custom field a condition great ">" or great equal ">=" to an expression like *now* or *>= 1d*

            h3. Expected Results

            When the transition is triggered the validator respects the time and expression configured.
            h3. Actual Results
            The date and time are not respected with several hours of difference, with or without the Include time part option enabled.

            \With the Include time part option enabled, it should respect a 24h difference, considering the hours the transition is triggered and the [user timezone|https://id.atlassian.com/manage-profile/account-preferences?ref=jira&src=personalsettings].

            With the Include time part option disabled, it should respect the start of the next date 00:00:00, considering the date the transition is triggered and the [user timezone|https://id.atlassian.com/manage-profile/account-preferences?ref=jira&src=personalsettings].
            h3. Workaround

            The user in this case can use a *date type* custom field, so the start of day will be considered in the comparison.
            Roger B. created issue -

              Unassigned Unassigned
              671ebca7909b Roger B.
              Affected customers:
              1 This affects my team
              Watchers:
              4 Start watching this issue

                Created:
                Updated: