Tempo Timesheet API - Daily hours total

gunkrico July 28, 2017

Hi All,

 

Currently im trying to make a small project to get 'Daily hours total' inputted by user on Tempo worksheet.

Need help API that could i use for it?

thanks.

1 answer

0 votes
Warren
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.
July 28, 2017

Hi

There is a Tempo API that you can use :

https://companyname.atlassian.net/rest/tempo-timesheets/3/worklogs?username={username}&dateFrom=2017-07-28&dateTo=2017-07-28

This will return al the logged time for a particular user for the dates specified (I've used the same start and end date which means for 1 day)

gunkrico July 30, 2017

Thanks Waren, its really helpful

Will try using it

gunkrico August 8, 2017

Hi Waren,

 

I got this error : "401 - Unauthorized"

i tested on https://apigee.com with basic auth username and my password

do you know how the best to use auth to whis api?

Warren
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 8, 2017

Hi

Whichever user you're using in the authorisation, needs to have access to view other user's timesheets. This access can be granted by an Admin.

gunkrico August 8, 2017

Hi,

I use my own user and want to see my own timesheet.

can we do it without admin permission?

Suggest an answer

Log in or Sign up to answer