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

XMLWordPrintable

    • 4
    • 30

      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. graphql_response.json
          64 kB
          Emrah Kocaman
        2. image-2020-08-28-10-31-10-835.png
          27 kB
          Henrique Bagatini [Atlassian]
        3. Screen Recording 2024-10-18 at 12.04.31.mov
          36.96 MB
          Emrah Kocaman
        4. screenshot-1.png
          105 kB
          Henrique Bagatini [Atlassian]
        5. screenshot-2.png
          32 kB
          Henrique Bagatini [Atlassian]
        6. Screen Shot 2020-08-26 at 17.03.02.png
          75 kB
          Henrique Bagatini [Atlassian]

            Assignee:
            Unassigned
            Reporter:
            Henrique Bagatini [Atlassian] (Inactive)
            Votes:
            54 Vote for this issue
            Watchers:
            39 Start watching this issue

              Created:
              Updated: