Tempo Timesheets Worklogs API - worklogs pre/post submission / approval

mattsalmon November 30, 2016

When using the REST Timesheets API, we're finding that it's only "submitted" time that is being returned by the worklogs endpoint:

http://{JIRA_BASE_URL}/rest/tempo-timesheets/3/worklogs/

In other words, users have to submit their time for approval before it can be retrieved through the API. Is this a fixed behaviour, or is there any way to parameterise the call to the API so that time is visible at different stages (ie pre-submission / post-submission but before approval / post-approval)?

2 answers

0 votes
mattsalmon December 21, 2016

Hi @Sigrún Arna Sigurðardóttir - thanks for your response. I did look through the list of parameters listed in the documentation, but unfortunately none of those really helps with my question. I'm trying to understand at which point the work logs become 'visible' through the API? Should I be able to see them (a) before submitting for approval (b) after submitting but before approval has happened, or (c) only once they've been approved?

0 votes
Tempo Support
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.
December 8, 2016

Hi Matt,

You can use these parameters:

dateFrom
string  
yyyy-MM-dd
dateTo
string  
yyyy-MM-dd
username
string  
name of the user you wish to get the worklogs for
projectKey
string  
key of a project you wish to get the worklogs for
accountKey
string  
key of an account you wish to get the worklogs for
teamId
string  
id of the Team you wish to get the worklogs for

http://tempo.io/doc/timesheets/api/rest/latest/#848933329

Here's an exmample:

http://localhost:8080/rest/tempo-timesheets/3/worklogs/?username=taylor&dateFrom=2016-12-04&dateTo=2016-12-10

I hope this helps.

Best regards,
Sigrún
Tempo 

 

 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events