Uploaded image for project: 'Automation for Cloud'
  1. Automation for Cloud
  2. AUTO-1501

Automation smart values do not honour the locale settings of the host product

XMLWordPrintable

    • Severity 3 - Minor

      Issue Summary

      Automation smart values do not honour the locale settings of the host product. We currently render smart values in the English locale, so numbers that contain decimals are incorrectly interpreted when Jira is set to German Locale (. is actually the thousands delimiter, so Jira tries to convert 30.0m -> 300 minutes -> 5h.)

      Steps to Reproduce

      1. Jira site set to german locale
      2. Create a rule that contains:
        1. Trigger: "Manual trigger from Issue" with a Number field prompt
        2. Action: "Log work" with the manual trigger Number field is the value for the "Time Spent" field ie { Unknown macro: \{userInputs.var_minutes}

          }

      1. Trigger this rule from a Jira issue with 30 as the input

      Expected Results

      30 minutes should be logged against the issue

      Actual Results

      5 hours is logged (300 minutes).

      Workaround

      Use smart value expression formatWithLocale (docs

       
      {{

      {

      {userInputs.var_minutes.formatWithLocale("de")}

      }}}

              Unassigned Unassigned
              sleatherland@atlassian.com Simeon Leatherland
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: