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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.