Details
-
Bug
-
Resolution: Unresolved
-
Low
-
None
-
8.2.0, 9.0.2
-
None
-
Severity 3 - Minor
Description
Issue Summary
Java supports timezone formats as GMT offset (such as GMT-0300) or as named timezone (such as America/Sao_Paulo).
When adjusting the timezone to either of the above formats, Jira works as expected.
However, Automation for Jira time operations, such as time related smart values may fail when using the GMT offset configuration.
This issue may occur when the JVM uses the system timezone configuration or when the user.timezone JVM property is configured.
Steps to Reproduce
- Install a vanilla instance of Jira.
- This was validated with Jira Software Data Center on versions 9.4.10 and 9.11.1.
- This was validated with Automation for Jira on versions 8.2.0 and on 9.0.2
- Create an automation rule that will log the now smart value when manually triggered from an issue.
- Configure the JVM to use the following startup property and restart Jira.
-Duser.timezone=America/Sao_Paulo
- Access Administration > System > System info and search for User Timezone to confirm the property is in use.
- Access a Jira issue, trigger the automation rule and notice from the rule audit log that the smart value works as expected.
- Configure the JVM to use the following startup property and restart Jira.
-Duser.timezone=GMT-03:00
- Access Administration > System > System info and search for User Timezone to confirm the property is in use.
- Access a Jira issue, trigger the automation rule and check the rule audit log.
Expected Results
now smart value is properly resolved and the rule succeeds.
Actual Results
The rule fails as Automation for Jira couldn't resolve the now smart value.
Checking the action details from the rule audit log, the following error is shown:
Error rendering smart-values when executing this rule: Failed to get value for now: Now: {{now}}
Workaround
Adjust the JVM timezone using the named timezone format instead of an offset from GMT.
Be mindful that named timezones may follow daylight saving times rules, while an offset won't.
Attachments
Issue Links
- supersedes
-
JIRAAUTOSERVER-351 Using time related smartvalues such as {{now}} result in an error "Failed to get value "
- Closed