It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Retrieve Worklogs Tempo Cloud API Edited

Jéssica Ramos Mar 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

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 Mar 27, 2019

Hello Susanne,

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

Thank you!

0 votes
Jan Terry Mar 25, 2019

Hi Jessica -

Are you on Server or Cloud version of Jira?

 

Regards

Jan

Jéssica Ramos Mar 25, 2019

I'm using the Cloud version

Jan Terry Mar 25, 2019 • edited

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 Mar 25, 2019

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

Jan Terry Mar 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
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Posted in Marketplace Apps & Integrations

Demo Den Ep. 4: Continuous Integration with CircleCI & Jira Software

Get ready! Demo Den Episode 4 is coming your way on Tuesday, May 28, 2018 with a Continuous Integration and Delivery special demo. CircleCI Director of Solutions Engineering, Eddie Webb will show us ...

485 views 0 4
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you