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

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 

 

 

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Jul 10, 2018 in Marketplace Apps

If you’re an Atlassian app developer, you’ll want to know about Atlas Camp!

This September 6-7, hundreds of Atlassian App developers will flock to Barcelona Spain to build skills, discover product roadmaps, meet face-to-face with the Atlassian team, and learn how to extend t...

177 views 0 4
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