Tempo Cloud API only returns current user worklogs

Jessica Morin
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!
November 3, 2020

By calling this https://api.tempo.io/core/3/worklogs?from=2020-11-01&to=2020-11-03

It returns my current user.

I don't know if it returns the current Windows user, because in the browser, I was logged to the Atlassian website with the user who has all access.

In the previous questions, like this one: https://community.atlassian.com/t5/Answers-Developer-Questions/Tempo-API-how-to-get-all-worklogs-for-all-users-and-projects/qaq-p/476409

It says to use the Tempo Servlet. However, according to https://tempo-io.atlassian.net/wiki/spaces/CLOUDNEWS/pages/501907993/2019-11-19+Decommissioning+the+Servlet+API+for+Tempo+Cloud+Products .

"Tempo has deprecated the Servlet API for all of its cloud products and will decommission it on April 1, 2020"

Btw, the call works in a docker container.

How can I make it work on Windows 10 (retrieving every worklogs)? What type of login is used in background to retrieve my worklogs? 

1 answer

1 accepted

0 votes
Answer accepted
Alexander Eck [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.
November 3, 2020

Hi Jessica,

the worklogs that are returned depend on the permissions of the Bearer token that you use for authentication. A personal Berar token can never have more permissions that it has in Tempo. Means when you can´t see a worklog within the UI you won´t get it from the Tempo API. 

So you should consider to get a personal Bearer token from an admin user or create/use a machine-to-machine token that overrides all permission checks. You should refer to our documentation here

BR

Akbar October 5, 2023

Hi @Alexander Eck [Tempo] ,

The documentation link is not found, please update it again, I need to have a look. 

Susan Wu
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.
October 5, 2023

Hi @Akbar ,

 

Please use the new V4 API in this doc https://apidocs.tempo.io/ as V3 API will be deprecated on 2023-11-01. https://www.tempo.io/updates/action-needed-for-rest-apis-version-4

 

Best regards,

Susan Wu

Tempo Product Expert

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events