Forums

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

How to get work log of "x" number of authors for certain duration via REST API?

Shain Jadhav
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 20, 2018

Hi,

Can anyone please help me to know how to get the work log of "x" number of authors for certain duration (for a week OR month) using rest api?

Regards,

1 answer

0 votes
Thomas Deiler
Community Champion
February 20, 2018

Dear @Shain Jadhav,

Pseudo - Algo:

1) search for issues "for a certain duration" (GET /rest/api/2/search).

2) for each issue call GET /rest/api/2/issue/{issueIdOrKey}/worklog.

So long

Thomas

Shain Jadhav
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 22, 2018

Thanks Thomas for your feedback but my ask is to have the work log in a single steps instead multiple.

 

Could you please help me to get the solution in a single step via REST API?

 

Question was: How to get the work log of a project "x" for "y" number of authors for a certain period (A week / Month) using REST API.

 

Regards,

Shain

Thomas Deiler
Community Champion
February 22, 2018

Dear @Shain Jadhav,

there is no single step. You have to do like I wrote. This 'logic' has to be done by you. Rest will just provide the issue information.

You can only short it, eventually. The search should already return work log entries, but you have to aggregate them on your own.

So long

Thomas

Thomas Deiler
Community Champion
February 25, 2018

Dear @Shain Jadhav,

have you got the worklog, meanwhile?

So long

Thomas

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events