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)?
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?
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:
I hope this helps.
Best regards,
Sigrún
Tempo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.