Worklog API issue

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?

 

 

 

 

 

 

 

 

0 answers

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 05, 2018 in Jira Software

Jack Graves: Real Ale enthusiast with a knack for Jira Software implementation

@Jack Graves [AC] first caught our eye with his incredible breakdown of what, in his opinion, can make or break a Jira software implementation. (Read his thoughts on this thread)! In this follow...

96,845 views 4 14
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you