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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Sarah Schuster
Posted Mar 28, 2018 in Jira Software

Can a company’s culture make or break agile adoption?

Can a new-to-agile team survive and thrive in a non-agile culture? If so, what advice would you give to those trying to be agile in a non-agile culture? What's the key(s) to success? Share your thoug...

12,635 views 15 13
Join discussion

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