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 Apr 22, 2018 in Jira Software

How-to setup a secured Jira Software 7.9.0 on Ubuntu 16.04.4 in less than 30 minutes

...PermissionsStartOnly=true User=www-data Group=www-data ExecStart=/opt/jira/bin/startup.sh ExecStop=/opt/jira/bin/shutdown.sh TimeoutStartSec=120 TimeoutStopSec=600 PrivateTmp=true [Install] WantedBy...

1,498 views 10 12
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