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

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

This widget could not be displayed.

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 

 

 

This widget could not be displayed.

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?

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Aug 22, 2018 in Marketplace Apps

How a Marketplace app tech team is achieving gender diversity

Hello! My name is Genevieve Blanch, and I'm the Marketing Manager at RefinedWiki, creators of apps to give teams the tools to customize Atlassian platforms. Currently, 44% of the tech team at Re...

526 views 3 19
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you