Tempo API at JIRA Server

jira.surecomp October 25, 2020

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
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 25, 2020

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

jira.surecomp October 25, 2020

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. 

Alexander Eck [Tempo]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 28, 2020

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

jira.surecomp October 28, 2020

thank

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events