I am using the following query to get data from the api:
/rest/api/3/search?jql=worklogDate+>%3D+"2025-02-01"+AND+worklogDate+<%3D+"2025-02-28"&fields=key,summary,worklog,project&expand=worklog
It works, I get the needed data, except of one single issue where I get the logs up to a certain date, all later logs are skipped. Later logs of other issues are returned.
Any idea why?
Hey @emanuel_borsoi! 👋
We’ve actually run into similar issues while building JetTime — Jira doesn’t always behave consistently when it comes to time zones. Even when using correct JQL, some worklogs outside the expected date range can be skipped or appear missing.
To work around this, we always extend the date range by 24 hours both before and after the target period, then filter the worklogs precisely in our scripts. That extra buffer helps ensure you’re not missing logs due to timezone quirks or edge cases.
You might want to give our app JetTime a try — it uses this approach under the hood, and you can compare its results with yours. It’s free during the trial and stays free forever if you have under 10 Jira users.
— Anton, from JetTime
It's a feature, not a bug :-)....
I don't know if I ever saw it documented, but I have experienced the same thing. When you pull back Worklogs (or changelogs too) when you are doing an issue retrieval, you only get a certain number if worklogs (and I'm guessing the root cause is worklog pagination).
I don't know if it will matter if you try to pass "limit" querystring value into your call, but you will still eventually have to deal with Pagination.
So, when I need worklogs, I walk my issues list and go get the worklogs (and paginate).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.