Details
-
Bug
-
Resolution: Fixed
-
Low
-
7.2.6
-
None
-
Severity 3 - Minor
Description
Issue Summary
When now.weekOfYear is used in A4J rules, it returns the wrong week number
Steps to Reproduce
- Create an automation rule to create a ticket in a project
- In the Create issue event, include now.weekOfYear in the summary
- Execute the rule and check the week number in the issue summary
Expected Results
now.weekOfYear should return the correct week number
Actual Results
now.weekOfYear returns the wrong week number
Example:
In the screenshots attached, the log-action shows week 9 but we are in week 8 (Feb 22 - Feb 28) of 2021
Workaround
There're different ways to count the week of the year (see Week numbering), so, due to that, on Automation for Jira 7.3.3 (Release notes) a new Smart Value was added to differ both weeks count compliant:
- ISO compliant
{{now.weekOfYearIso}}
- Classic compliant
{{now.weekOfYear}}
With that said, use the ISO compliant, then you should get the expected week count.