Work Time Tracking Calendar for Jira v 7.0.x: After Jira upgrade to version 9.x.x worklogs for past periods are not shown

The problem is caused by Safeguards for Jira index that were introduced in Jira 8.22.2: https://community.atlassian.com/t5/Data-Center-articles/Introducing-Safeguards-for-Jira-index/ba-p/2037880#M433 .

To fix the problem set jira.safeguards.indexing.issue.worklogs in setenv.sh to MAX_WORKLOGS_YOU_HAVE_IN_ANY_ISSUE (I guess 50000 is sufficient for most real cases) and run the full re-index. After that you can put jira.safeguards.indexing.issue.worklogs back to 100 or what is acceptable for your business scenarios.

Kudos to https://community.atlassian.com/t5/Jira-Software-questions/Jira-jql-query-for-worklogdate-does-give-wrong-result-after/qaq-p/2288452

Related links:

https://confluence.atlassian.com/jirakb/what-s-changed-in-jira-after-the-implementation-of-indexing-limits-1131089687.html