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

Date Compare Validator is not working when using the NOW parameter

    XMLWordPrintable

Details

    Description

      Summary

      The Date Compare Validator is not working with now parameter

      Steps to Reproduce

      1. Create a custom Date Picker field and configure in a project. (Please note, the Date Picker, not the Date Time Picker After additional tests, this affects date time picker as well)
      2. On the project workflow, create a Date Compare Validator with a condition > or >= and compare with expression now
      3. In the following scenario, the validator was configured on the issue creation.

      Expected Results

      The validator would check it the date is equal or greater than now, and if the criteria are met, the issue is successfully created, otherwise it will prevent the issue creation showing an error message.

      Actual Results

      The issue is not created because it says the date does not match. For example, setting the date as 29/Aug (Today), you got the following error message:

      Custom Date Field isn't greater than or equal to (29/Aug/17 4:56 PM)


      The error is always throwing as if you were 3 hours behind of your current timezone.

      Notes

      The validator should ignore the hour as it's mentioned in the description:

      Workaround

      None.

      Attachments

        1. Error message.png
          30 kB
          Luiz Farias
        2. screenshot-1.png
          18 kB
          André Sinatora
        3. screenshot-2.png
          85 kB
          André Sinatora
        4. screenshot-3.png
          12 kB
          André Sinatora
        5. screenshot-4.png
          19 kB
          André Sinatora
        6. screenshot-5.png
          115 kB
          Rodrigo Goulart
        7. Validator Description.png
          172 kB
          Luiz Farias
        8. Validator settings.png
          265 kB
          Luiz Farias

        Issue Links

          Activity

            People

              1590a4180611 Jessica Collins
              lfarias Luiz Farias (Inactive)
              Votes:
              51 Vote for this issue
              Watchers:
              47 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: