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?
Hey Atlassian community, I help lead engineering at Sentry, an open-source error-tracking and monitoring tool that integrates with Jira. We started using Jira Software Cloud internally last year, a...
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