Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to send timesheet approval data to an external REST API

Mit Thui 2k5
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 27, 2023

Hello,
I am looking for a way that when doing timesheet approval will call to my external api.
How to do this? Please guide me!
Thanks a lot!

2 answers

0 votes
Aron Gombas _Midori_
Community Champion
August 28, 2023

So you would want Tempo call your API at each approval. As far as I know, it is not possible, but for the best answer ask the Tempo product support.

What you could do as an alternative: create a little "sync" mechanism that runs periodically (e.g. every 5 minutes), pulls the data from the Tempo API, pushes the data to your API. Of course, there may be difficulties with pushing only the "changed" data and such, but you get the basic idea here.

0 votes
Dam
Community Champion
August 28, 2023

Hi @Mit Thui 2k5 

there are severals APIs for Timesheets approvals, the root APIs documentation from Tempo is here: https://apidocs.tempo.io/#tag/Timesheet-Approvals

As you will see there are severals APIs to approve, reject or reopen timesheets... 

I hope this helps. 
Dam.

Suggest an answer

Log in or Sign up to answer