Hi,
Working with project automation on Jira Server. My use-case is to translate an ISO week string '2053' (i e 2020 w53) to a date.
Field 'Progress Deviation Comment' contains string '2053'.
{{ issue.Progress Deviation Comment.toDate("yyww").jiraDate }}
However, my translation results in date '2020-12-27' (Sunday of w2052) instead of the expected date of '2020-12-28' (Monday of w2053).
Testing indicates that toDate("yyww") use Sunday as first day of week and w2053 and w2101 results in same date:
- String '2052' -> '2020-12-20' (Sunday of ISO week 51)
- String '2053' -> '2020-12-27' (Sunday of ISO week 52)
- String '2101' -> '2020-12-27' (Sunday of ISO week 52)
Doing a check of week number using my locale of Sweden shows the expected week 33.
{{now.locale("sv").weekOfYear}}
I suspect adding locale is required for proper translation to ISO Week date, but I am unable to find any documentation on how to do this translation. Does anyone know?
Best Regards
//Jimmy