Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Tempo REST API's for worklog not working correctly

Prateek Jain September 22, 2015

Hi,

REST API at http://tempo.io/doc/timesheets/api/rest/7.14/#1279953671 to get the worklog for a specific user or project is not working.

dateTO and dateFrom parameters are working but it's only returning the worklogs of the user who is calling the API and ignoring the projectkey and username parameters.

 

Thanks,

Prateek

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
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.
September 24, 2015

You are correct, this API has changed since 7.12. Please take a look at https://tempoplugin.jira.com/wiki/display/JTS/Timesheets+REST+API for links to the correct API information for your version.

Tempo Timesheets on Cloud can not be updated individually. We deliver the versions to Atlassian who test it and then install it on the Cloud system. You can follow our deliveries to Atlassian on https://tempoplugin.jira.com/wiki/display/TT/Tempo+Timesheets+Cloud+Releases. A link to the Atlassian JIRA issue that is handling the upgrade request is also provided on this page.

Regards,

Susanne

Prateek Jain September 25, 2015

Thanks. In that case is there a API which gives worklog for everyone? When I use https://blisstering.atlassian.net/rest/tempo-timesheets/3/worklogs?dateFrom=2015-09-01&dateTo=2015-09-01 This returns back my worklog only for the duration. I want a way to access worklogs for everyone for the period.

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.
September 28, 2015

That you only get your own worklogs might depend on the permissions you have in Tempo. To retireve all worklogs, we recommend using the Tempo Servlet (https://tempoplugin.jira.com/wiki/display/TEMPO0713/Tempo+Servlet+Manual).

0 votes
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.
September 23, 2015

Hi Prateek,

this API gives you only access to information that you can also view in Tempo Timesheets. If you do not have access to view the worklogs of another user in the Team Timesheet, you will not be able to access it with the API.

To retrieve worklog information with the API, you need to be Team lead (or have the "Approve Timesheet" permission) for a Team that the User is a member of.

Regards,

Susanne

 

Prateek Jain September 23, 2015

Hi Susanne, I have administrative privileges and I am able to access that API but just not those 2 parameters - projectKey and username. But, I figured out that these 2 parameters are available in 7.14 version of Tempo and I have 7.12 version on our JIRA in which these 2 parameters are not available. I am not seeing any option to upgrade the Tempo on my JIRA. Am I on the right track? If yes, how can I upgrade my Tempo version to 7.14?

TAGS
AUG Leaders

Atlassian Community Events