When using the REST Timesheets API, we're finding that it's only "submitted" time that is being returned by the worklogs endpoint:
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)?
You can use these parameters:
name of the user you wish to get the worklogs for
key of a project you wish to get the worklogs for
key of an account you wish to get the worklogs for
id of the Team you wish to get the worklogs for
Here's an exmample:
I hope this helps.
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?
Atlas Camp is our developer event which will take place in Barcelona, Spain from the 6th -7th of September . This is a great opportunity to meet other developers and get n...
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!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG