Retrieve Worklogs Tempo Cloud API

Jéssica Ramos March 25, 2019

I used the documentation for REST API to get all worklogs in a given period by using:

https://api.tempo.io/core/3/worklogs?from=2019-02-01&to=2019-03-25&limit=1000

but in the output for that request I don't have the work hours for all the users, only for a few users (the output identifies only the author). how can i get all work hours for all the users?

 

I tried using timesheets for that but the request https://api.tempo.io/core/3/timesheet-approvals/user/{accountID}?from=2019-02-01&to=2019-03-25 gets an 404 error code.

2 answers

1 accepted

0 votes
Answer accepted
Susanne Götz _Tempo_
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.
March 26, 2019

Hi @Jéssica Ramos ,

The worklogs API returns only the worklogs you have the permission to view ( so if you can not view the worklog in the Tempo Reports, you will also not be able to retrieve it with the API.

The Tempo Servlet returns all worklogs made in the selected period. Please note that the Servlet requires the TempoApiToken and that the IP number is listed in the Allowed addresses ( Tempo, Settings, External System Token).

Regards,
Susanne Götz
Tempo team

Jéssica Ramos March 27, 2019

Hello Susanne,

After setting the "View all worklogs" permission the call returned all worklogs.

Thank you!

0 votes
Jan
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.
March 25, 2019

Hi Jessica -

Are you on Server or Cloud version of Jira?

 

Regards

Jan

Jéssica Ramos March 25, 2019

I'm using the Cloud version

Jan
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.
March 25, 2019

Hi Jessica -

Have you changed he api.tempo.io to the name of your company domain in jira?

https://mycompany.atlassian.net/core/3/worklogs?from=2019-02-01&to=2019-03-25

 

Or try using the servlet to retrieve worklogs

https://app.tempo.io/api/1/getWorklog?dateFrom=2017-08-01&dateTo=2017-08-31&format=xml&baseUrl=https://mycompany.atlassian.net&tempoApiToken=MY-SUPER-SECRET-TOKEN

https://tempo-io.github.io/tempo-mtm-docs/ 

Jéssica Ramos March 25, 2019

i tried. when i do that i get an 403 status code

Jan
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.
March 25, 2019

I'm not on cloud so I'm not able figure it out based on the documentation. Perhaps someone from @Tempo Support will be able to better assist. :) 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events