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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In case of Jira Server/Data Center, 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.
https://www.tempo.io/server-api-documentation/servlet
https://tempo-io.atlassian.net/wiki/spaces/THC/pages/366805324/Tempo+Servlet+Manual
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 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.