Uploaded image for project: 'Automation for Jira Server'
  1. Automation for Jira Server
  2. JIRAAUTOSERVER-319

Using Jira Automation Addon to copy dates is off by 1d

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Low Low
    • None
    • 7.3.2, 7.3.4
    • Actions
    • Severity 3 - Minor
    • 0

      Issue Summary

      In some timezones, using Jira automation to copy date picker entries results in the date 1 day off.

      Steps to Reproduce

      1. Install Automation for Jira https://marketplace.atlassian.com/apps/1215460/automation-for-jira-server?tab=overview&hosting=datacenter
      2. Set system / local timezone to AEST (Australian Eastern Standard Time) | GMT + 10
      3. Create a custom field - date picker. Lets call it Start Date
      4. Make start date available on the project screen
      5. Create an automation rule that copies the Start Date to Target Start. Target Start isn't natively modifiable so you'd need to use something similar to the .JSON below to modify the custom target start date.
        {
            "fields": {
                "customfield_10101":"{{issue.customfield_10901}}"
            }
        }
        

      See attached screen recording for reproduction steps: ScreenRecordingOffby1Day.mov

      Expected Results

      Dates are the same

      Actual Results

      Dates are off by one day

      Workaround

      You can use plusDays to offset the bug. Example

      {
          "fields": {
              "customfield_10101":"{{issue.customfield_10901.plusDays(1)}}",
          }
      }
      

       

       

       

              Unassigned Unassigned
              7f0ad53b5538 Jackson
              Votes:
              10 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated: