-
Bug
-
Resolution: Duplicate
-
Low
-
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
- Jira site set to german locale
- Create a rule that contains:
- Trigger: "Manual trigger from Issue" with a Number field prompt
- Action: "Log work" with the manual trigger Number field is the value for the "Time Spent" field ie
{
Unknown macro: \{userInputs.var_minutes}
}
- 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)
{{
{
}}}