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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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 Marketplace Apps & Integrations

How to log work and track time in Jira when a person is part of multiple teams

  The manager’s daily activities include a list of challenges to reach high levels of efficiency for their teams. Part of these challenges is related to how to deal with the worklog systems sin...

85 views 2 1
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