Forums

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

Get all worklogs with their Issue ID added in a Day

Sachit Sharma August 25, 2021

Hi

I want to fetch all the worklogs added by my developers and store them in my timesheet.

I want to run a cron job everyday from Timesheet end and it will fetch all the worklogs added under different Issue Id's, that should include User email address as well to identify who have added which of the work logs.

I have checked few API's but some of then required "Issue Id" to be passed or some of them are not proving me all the data I need.


Please Help

2 answers

0 votes
Daniel Ebers
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.
August 29, 2021

Hi @Sachit Sharma

not being familiar with details I just wanted to share it was possible to retrieve worklogs by the following URL:

https://YouGreatSite.atlassian.net/rest/api/3/worklog/updated

The other URL with leading "api.atlassian.com" looks unknown to me so far.
Probably this helps moving one step forward in your whole achievement.

Regards,
Daniel

0 votes
Mohamed Benziane
Community Champion
August 25, 2021

Hi,

Welcome to the community

Did you try this API:

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

It will return all worklogs you have permission to see.

Sachit Sharma August 25, 2021

Thanks Mohamed for your reply.


I have checked this link but I am not able to test it.
=> 'https://api.atlassian.com/ex/jira/:cloudId:/rest/api/3/worklog/list'
To fetch the results I have to add "cloudId" over here, which I am not able to find out from my Dev account, can you please let me know where I can get this.

=> I have to fetch the data on the basis of Dates, Like I have to get all the logs which has been updated today only. 
https://abc.net/rest/api/3/worklog/updated?since=1629885733090
I am using "since" parameters when I am trying to get the updated worklog Id's, but the same is not working in above case.


Please Suggest!

Suggest an answer

Log in or Sign up to answer