Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Missing worklogs on API call

emanuel_borsoi
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 17, 2025

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? 

 

2 answers

0 votes
Anton from JetHeads_io
Atlassian Partner
April 18, 2025

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

0 votes
David Nickell
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 18, 2025

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).

 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events