Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Tempo API at JIRA Server

we are using a JIRA server (not a cloud version) we want to use the Tempo API to add accounts and to retrieve the logtime.

 

please explain, or send directly to documentation what is the correct way to do it.  

1 answer

0 votes

Start at https://www.tempo.io/server-api-documentation - you'll need the Tempo Core, accounts and timesheet sections.

hi,

 

thank you for the quick repones.

 

if you can have a sample code for retrieving log work and a code for updates accounts per project? 

 

we have also a problem with authentication. 

Hi Nic,

for worklogs it something like:

curl --location --request POST 'http://yourJiraUrl/rest/tempo-timesheets/4/worklogs/search/?from=2020-06-10&to=2020-09-30' --header 'Content-Type: application/json' --header 'Authorization: Basic usernamepassbase64encoded' --data-raw '{"from":"2020-09-10","to":"2020-09-30"}'

and to create an Account:

curl --location --request POST 'http://yourJiraUrl/rest/tempo-accounts/1/account/' --header 'Content-Type: application/json' \--header 'Authorization: Basic usernamepassbase64encoded' --data-raw '{"customer": { "key": "100201" },"category": { "key":"320" },"lead": { "name":"john" },"name":"Test import from API","status":"OPEN","key":"1_w3453"}'

 BR

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Apps & Integrations

🍻🍂Apptoberfest Update: Upcoming Virtual Events 🎉

Hello Community! I hope you've been enjoying the 🍂Apptoberfestivities🍂 (I know I have!) The event is heating up next week with a series of virtual events that we're calling the 🍻🍂Partner App ...

116 views 1 9
Read article

Community Events

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

Events near you