List a user's tracked times in a repo
const url = 'https://gitea.com/api/v1/repos/example/example/times/example';const options = {method: 'GET', headers: {Authorization: 'Basic <credentials>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://gitea.com/api/v1/repos/example/example/times/example \ --header 'Authorization: Basic <credentials>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Owner of the repo
Name of the repo
Username of the user whose tracked times are to be listed
Responses
Section titled “Responses”TrackedTimeList
TrackedTime worked time for an issue / pr
object
ID is the unique identifier for the tracked time entry
Issue represents an issue in a repository
object
Attachment a generic attachment
object
DownloadURL is the URL to download the attachment
Created is the time when the attachment was uploaded
DownloadCount is the number of times the attachment has been downloaded
ID is the unique identifier for the attachment
Name is the filename of the attachment
Size is the file size in bytes
UUID is the unique identifier for the attachment file
User represents a user
object
Is user active
URL to the user’s avatar
The user’s description
User counts
The user’s full name
URL to the user’s gitea page
The user’s id
Is the user an administrator
User locale
The user’s location
Login of the user, same as username
Identifier of the user, provided by the external authenticator (if configured)
Is user login prohibited
Is user restricted
The ID of the user’s Authentication Source
User visibility level option: public, limited, private
The user’s website
User represents a user
object
Is user active
URL to the user’s avatar
The user’s description
User counts
The user’s full name
URL to the user’s gitea page
The user’s id
Is the user an administrator
User locale
The user’s location
Login of the user, same as username
Identifier of the user, provided by the external authenticator (if configured)
Is user login prohibited
Is user restricted
The ID of the user’s Authentication Source
User visibility level option: public, limited, private
The user’s website
The version of the issue content for optimistic locking
Label a label to an issue or a pr
object
Description provides additional context about the label’s purpose
ID is the unique identifier for the label
Name is the display name of the label
URL is the API endpoint for accessing this label
Milestone milestone is a collection of issues on one repository
object
ClosedIssues is the number of closed issues in this milestone
Description provides details about the milestone
ID is the unique identifier for the milestone
OpenIssues is the number of open issues in this milestone
State indicates if the milestone is open or closed
Title is the title of the milestone
Projects track issues and pull requests, standalone note cards are not supported.
object
Card type: “text_only” or “images_and_text”
User represents a user
object
Is user active
URL to the user’s avatar
The user’s description
User counts
The user’s full name
URL to the user’s gitea page
The user’s id
Is the user an administrator
User locale
The user’s location
Login of the user, same as username
Identifier of the user, provided by the external authenticator (if configured)
Is user login prohibited
Is user restricted
The ID of the user’s Authentication Source
User visibility level option: public, limited, private
The user’s website
Deprecated: use Creator instead
Deprecated: use State instead
Template type: “none”, “basic_kanban” or “bug_triage”
Project type: “individual”, “repository” or “organization”
Null only for legacy rows that carry no update timestamp
PullRequestMeta PR info if an issue is a PR
object
RepositoryMeta basic repository information
object
User represents a user
object
Is user active
URL to the user’s avatar
The user’s description
User counts
The user’s full name
URL to the user’s gitea page
The user’s id
Is the user an administrator
User locale
The user’s location
Login of the user, same as username
Identifier of the user, provided by the external authenticator (if configured)
Is user login prohibited
Is user restricted
The ID of the user’s Authentication Source
User visibility level option: public, limited, private
The user’s website
Deprecated (only for backwards compatibility)
Time in seconds
Deprecated (only for backwards compatibility)
Username of the user
Example
[ { "issue": { "assignee": { "visibility": "public" }, "assignees": [ { "visibility": "public" } ], "labels": [ { "color": "00aabb", "exclusive": false, "is_archived": false } ], "milestone": { "state": "open" }, "projects": [ { "creator": { "visibility": "public" }, "state": "open" } ], "state": "open", "user": { "visibility": "public" } } }]APIError is error format response
Headers
Section titled “Headers”APIForbiddenError is a forbidden error response
Headers
Section titled “Headers”APINotFound is a not found empty response