I am trying to get approval status for worklogs using the parameter "addApprovalStatus=true" via TEMPO Rest API but nothing is returned by the API. Is there any level of permission required to view approval statuses for worklogs?. I do not have team administrator or manager permission. Is it possible to get approval status via API without these permissions?. Any help or suggestions would be appreciated!
Are you wanting to pull the status of all timesheets (like who has submitted, pending approval and approved)?
Use this api https://jira.companydomain.com/rest/tempo-timesheets/4/timesheet-approval?teamId=00&periodStartDate=2018-07-15 where companydomain is your company details and teamId will need to be set to the number for the team. It will only retrieve one week at a time if you are on weekly approvals, so you'll have to run it for each week. It returns the data in JSON format but you can use a free json to csv converter online to export to excel.
Hi Jane, where is the most recent documentation for the above api? The above link works great in my environment but does not match the documentation I could find. The documentation also only includes the username parameter not teamId as above. I'm actually trying to make the username parameter work and I can't!
@HSNAN - Tempo says it should return based on the period configurations you have set in Tempo Settings (Monthly, Weekly). But, I have not had success in pulling it for an entire month. I've only ever received one week at a time.
@Jeffrey Schumacher https://www.tempo.io/developers - On this page you can then navigate to cloud or server. Then drill down into what you need. I haven't tried it with username but I "think" you would need to know the teamid the user is a member of.
I'm not totally sure of the answer, but something I have read numerous times is that the permissions required via the API are exactly the same as it is within Jira. So ... if you are unable to do this in Jira itself, you will not be able to do it using the API.
Hope this helps a bit.
You cannot get the approval status of the worklogs directly by using the Tempo REST API, however it's possible with the Tempo Servlet API.
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events