Log time
POST
/issues/{issue}/time-entries
const url = 'http://localhost:8100/api/v1/issues/WEB-12/time-entries';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"hours":1,"comment":"example","date":"2026-04-15","activity":"development"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:8100/api/v1/issues/WEB-12/time-entries \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "hours": 1, "comment": "example", "date": "2026-04-15", "activity": "development" }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”issue
required
string
Issue key (WEB-12, case-insensitive) or numeric id
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
hours
required
number
comment
string
date
string format: date
activity
string
Responses
Section titled “Responses”Created
Media typeapplication/json
object
data
object
id
integer
issue_key
string
user
object
id
integer
name
string
hours
number
activity
object
id
required
string
name
required
string
current
boolean
comment
string | null
date
string format: date
created_at
string format: date-time
Example generated
{ "data": { "id": 1, "issue_key": "example", "user": { "id": 1, "name": "example" }, "hours": 1, "activity": { "id": "example", "name": "example", "current": true }, "comment": "example", "date": "2026-04-15", "created_at": "2026-04-15T12:00:00Z" }}Invalid input
Media typeapplication/json
object
message
string
errors
object
key
additional properties
Array<string>
Example generated
{ "message": "example", "errors": { "additionalProperty": [ "example" ] }}