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

%%CURRENT_DATETIME%% in post function doesn't set the correct date on Date Picker fields

XMLWordPrintable

    • 7
    • 24
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      Issue Summary

      When you create a post-function on the workflow to add %%CURRENT_DATETIME%% on a custom field Date Picker field, it comers one day after date. It depends on what time you trigger this post-function.
      Here we have an example:

      Steps to Reproduce

      1. Add a post-function on the workflow to edit Date Picker field with %%CURRENT_DATETIME%%;
      2. Perform the steps to trigger the post-function;
      3. Normally it happens at the end of the day;

      Expected Results

      Date in Date Picker field displays the correct date. (i.e. in the user's timezone)

      Actual Results

      Date in Date Picker field displays the wrong date. (it displays the date using the Jira System timezone settings)

      Workaround

      Currently, there is no workaround using a Date Picker Field for this matter.

      However, a Date/Time Picker Field could be utilized instead, which will correctly display the date and time in the user's timezone.

        1. Screen Shot 2020-08-26 at 17.03.02.png
          Screen Shot 2020-08-26 at 17.03.02.png
          75 kB
        2. screenshot-2.png
          screenshot-2.png
          32 kB
        3. screenshot-1.png
          screenshot-1.png
          105 kB
        4. Screen Recording 2024-10-18 at 12.04.31.mov
          36.96 MB
        5. image-2020-08-28-10-31-10-835.png
          image-2020-08-28-10-31-10-835.png
          27 kB
        6. graphql_response.json
          64 kB

              Unassigned Unassigned
              91eeb50e7a1f Henrique Bagatini [Atlassian] (Inactive)
              Votes:
              47 Vote for this issue
              Watchers:
              33 Start watching this issue

                Created:
                Updated: