List all comments and events on an issue
const url = 'https://gitea.example.com/api/v1/repos/example/example/issues/1/timeline';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.example.com/api/v1/repos/example/example/issues/1/timeline \ --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
Index of the issue
Query Parameters
Section titled “Query Parameters”If provided, only comments updated since the specified time are returned.
Page number of results to return (1-based)
Page size of results
If provided, only comments updated before the provided time are returned.
Responses
Section titled “Responses”TimelineList
TimelineComment represents a timeline comment (comment of any type) on a commit or issue
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
The user’s username
The user’s authentication sign-in name.
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
Team represents a team in an organization
object
Organization represents an organization
object
Deprecated
object
Issue represents an issue in a repository
object
Attachment a generic attachment
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
The user’s username
The user’s authentication sign-in name.
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
The user’s username
The user’s authentication sign-in name.
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
Label a label to an issue or a pr
object
Milestone milestone is a collection of issues on one repository
object
StateType issue state type
PullRequestMeta PR info if an issue is a PR
object
RepositoryMeta basic repository information
object
StateType issue state type
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
The user’s username
The user’s authentication sign-in name.
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
Label a label to an issue or a pr
object
Milestone milestone is a collection of issues on one repository
object
StateType issue state type
Milestone milestone is a collection of issues on one repository
object
StateType issue state type
Comment represents a comment on a commit or issue
object
Attachment a generic attachment
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
The user’s username
The user’s authentication sign-in name.
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
Commit SHA where issue/PR was referenced
Issue represents an issue in a repository
object
Attachment a generic attachment
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
The user’s username
The user’s authentication sign-in name.
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
The user’s username
The user’s authentication sign-in name.
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
Label a label to an issue or a pr
object
Milestone milestone is a collection of issues on one repository
object
StateType issue state type
PullRequestMeta PR info if an issue is a PR
object
RepositoryMeta basic repository information
object
StateType issue state type
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
The user’s username
The user’s authentication sign-in name.
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
Whether the assignees were removed or added
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
The user’s username
The user’s authentication sign-in name.
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
TrackedTime worked time for an issue / pr
object
Issue represents an issue in a repository
object
Attachment a generic attachment
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
The user’s username
The user’s authentication sign-in name.
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
The user’s username
The user’s authentication sign-in name.
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
Label a label to an issue or a pr
object
Milestone milestone is a collection of issues on one repository
object
StateType issue state type
PullRequestMeta PR info if an issue is a PR
object
RepositoryMeta basic repository information
object
StateType issue state type
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
The user’s username
The user’s authentication sign-in name.
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)
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
The user’s username
The user’s authentication sign-in name.
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
Example
[ { "assignee": { "login_name": "empty" }, "assignee_team": { "permission": "none", "units": [ "repo.code", "repo.issues", "repo.ext_issues", "repo.wiki", "repo.pulls", "repo.releases", "repo.projects", "repo.ext_wiki" ], "units_map": { "repo.code": "read", "repo.ext_issues": "none", "repo.ext_wiki": "none", "repo.issues": "write", "repo.projects": "none", "repo.pulls": "owner", "repo.releases": "none", "repo.wiki": "admin" } }, "dependent_issue": { "assignee": { "login_name": "empty" }, "assignees": [ { "login_name": "empty" } ], "labels": [ { "color": "00aabb", "exclusive": false, "is_archived": false } ], "user": { "login_name": "empty" } }, "label": { "color": "00aabb", "exclusive": false, "is_archived": false }, "ref_comment": { "user": { "login_name": "empty" } }, "ref_issue": { "assignee": { "login_name": "empty" }, "assignees": [ { "login_name": "empty" } ], "labels": [ { "color": "00aabb", "exclusive": false, "is_archived": false } ], "user": { "login_name": "empty" } }, "resolve_doer": { "login_name": "empty" }, "tracked_time": { "issue": { "assignee": { "login_name": "empty" }, "assignees": [ { "login_name": "empty" } ], "labels": [ { "color": "00aabb", "exclusive": false, "is_archived": false } ], "user": { "login_name": "empty" } } }, "user": { "login_name": "empty" } }]APINotFound is a not found empty response