Worklog API issue

Serhii Volynets May 22, 2017

Hi.

Our Jira is cloud-based.

I have got a task to sync Worklogs from Jira to 3rd party system.

I use Jira REST API to get the list of updated worklogs.

https://docs.atlassian.com/jira/REST/cloud/#api/2/worklog

However, the response (always) does not include Worklog records, which are older then 24/march/2017 ("until"="1490348428803" in response)

For example, when i call all updated timelogs from 21 march

https://3cconsult.atlassian.net/rest/api/2/worklog/updated?since=1490050800000

I get 

{"values":[{"worklogId":10900,"updatedTime":1490348428803,"properties":[]}],"since":1490050800000,"until":1490348428803,"self":"https://3cconsult.atlassian.net/rest/api/2/worklog/updated?since=1490050800000","lastPage":true}

in response.

 

However, when i call all updated Timelogs from 5 May until now:

https://3cconsult.atlassian.net/rest/api/2/worklog/updated?since=1493938800000

or

https://3cconsult.atlassian.net/rest/api/2/worklog/updated?since=1493938800000&until=1495670400000

i get empty response with "until"= request's "since"

{

"values": [],
"since": 1493938800000,
"until": 1493938800000,
"self": "https://3cconsult.atlassian.net/rest/api/2/worklog/updated?since=1493938800000",
"lastPage": true
}

Is there any way to control "since" parameter?

 

 

 

 

 

 

 

 

1 answer

0 votes
Jim Schein March 6, 2020

Can't answer this, hoping to revive it as I'm having this exact issue.  Any suggestions?

Suggest an answer

Log in or Sign up to answer