Forums

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

Getting wrong worklogs from Ids of updated worklogs API call

Dion Nijssen
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!
February 8, 2024

When making a call to with 2024-02-08 00:00:00.0 in unix: 1707346800 

https://xxxxx.atlassian.net/rest/api/3/worklog/updated?expand=values&since=1707346800 

I get 1000 worklog even from dates before the given value. Does anybody know what I do wrong?

 

Also I didn't see an API call that can retrieve the Worklog without the IssueId. In this API call you only get the worklog Id. Does anybody have an idea how to get the worklog values?

 

Thanks.

2 answers

1 accepted

2 votes
Answer accepted
Bill Sheboy
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.
February 8, 2024

Hi @Dion Nijssen -- Welcome to the Atlassian Community!

The docs indicate to use milliseconds and your timestamp value appears to be in seconds format.  Please add 000 to the end and re-test.

https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-worklogs/#api-rest-api-3-worklog-updated-get

Kind regards,
Bill

Matthias Gaiser _K15t_
Community Champion
February 8, 2024

You're totally right @Bill Sheboy 🎉

2 votes
Matthias Gaiser _K15t_
Community Champion
February 8, 2024

Hey @Dion Nijssen

welcome to the Atlassian Community.

I can understand your confusion, I also get worklogs earlier than my since parameter value - and was unable to figure out the reason.
Does someone else have a solution/hint to this?

If this call worked, you could actually get the value of multiple worklogs via this POST endpoint. It takes the worklog ids as an argument and returns the complete worklogs as responses.

Hope you get a solution for your problem,
Matthias.

Daniel
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!
June 3, 2024

Same, I would like to extract all updated Worklog's details into our ETL tool, without provdiing a worklog id which I would need to obtain from the issue.  

 

In particular frustrating, as the Jira provided Google Sheet extension does allow me doing this jointly together with pulling a list of Issues including the complete Worklog history. 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events