v5

latestSwagger 2.0MIT2026-08-03485217850.7 KB
issue

Add tracked time to a issue

post/repos/{owner}/{repo}/issues/{index}/times

Path parameters

ownerstring required

owner of the repo

repostring required

name of the repo

indexinteger required

index of the issue

Request body

createdstring date-time
timeinteger required

time in seconds

user_namestring

username of the user who spent the time working on the issue (optional)

Response

TrackedTime

createdstring date-time
idinteger

ID is the unique identifier for the tracked time entry

issue_idinteger

deprecated (only for backwards compatibility)

timeinteger

Time in seconds

user_idinteger

deprecated (only for backwards compatibility)

user_namestring

username of the user

Example response

{
  "issue": {
    "labels": [
      {
        "color": "00aabb"
      }
    ]
  }
}