-
Bug
-
Resolution: Fixed
-
Low
-
10.129.3
-
1
-
Severity 2 - Major
-
No
Issue Summary
- Start date is configured as Jira custom field of date picker type using new field management
- Start Date on Jira Align updates Start Date on Jira by one day off (one day less)
- When Jira syncs back to Jira Align, the date is reduced by one day on Jira Align as well.
- This is reproducible on Jira Align On-prem and Cloud: Yes
Steps to Reproduce
- Make sure Jira and Jira Align servers are not set to UTC time. Issue is not replicable if both Jira and JA servers are set to use UTC time.
- Configure "Field Management" (new) with the start date set to a custom field date picker on Jira.
- choose the start date on Jira Align and wait for JA -> Jira sync. Jira start date shows one day less
- After a few more seconds/minutes, notice that Jira -> JA sync reduces one day less on Jira Align.
- Jira to Jira Align date picker works fine.
- When using system field such as "duedate", the sync works fine irrespective of server time.
Expected Results
Though the server times are not normalised to UTC, the date fields using custom field date pickers should sync without any date mismatch.
Actual Results
When the server times are not normalised to UTC, the date fields using custom field date pickers sync with any date mismatch (one day less is update on Jira)
The below problematic date conversion on for both start date and portfolio ask date on the CS file JiraConnector.Services.JiraApiServices.JiraManager.cs:
DateUtil.ToJsonApiString(acEpic.FeaturePortfolioAskDate) : null, fields); DateUtil.ToJsonApiString(acEpic.FeatureStartInitiationDate) : null, fields); DateUtil.ToJsonApiString(acEpic.FeatureTargetCompletionDate, false) : null, fields);
Workaround
The only workaround is to set both Jira and Jira Align servers in UTC time. This is not a possible solution for both cloud and on-prem as servers will be hosted in different regions in different datacenters