Private Issues (API): List and read private issues #419

Closed
opened 2026-02-23 16:17:44 +00:00 by nphilipp · 4 comments
Member

Story

As a user of Forgejo,
I want to list public and private issues via the REST API,
so I can work with private issues using the web API.

Acceptance Criteria

  • Outstanding internal functions/methods accessing issues (e.g. GetIssueByIndex()) are identified and adapted.
  • Functions/methods used for enumerating (public) issues through the REST API are adapted so they also return private issues which the user may access.
  • Functions/methods used for reading (public) issues through the REST API are adapted so that, for a private issue, they check if the current user may access it.
# Story As a user of Forgejo, I want to list public and private issues via the REST API, so I can work with private issues using the web API. # Acceptance Criteria - [x] Outstanding internal functions/methods accessing issues (e.g. `GetIssueByIndex()`) are identified and adapted. - [x] Functions/methods used for enumerating (public) issues through the REST API are adapted so they also return private issues which the user may access. - [x] Functions/methods used for reading (public) issues through the REST API are adapted so that, for a private issue, they check if the current user may access it.
nphilipp added this to the Sprint 15 project 2026-02-23 16:17:44 +00:00
humaton modified the project from Sprint 15 to Sprint 16 2026-03-09 10:49:13 +00:00
Author
Member

As discussed, bumping SPs.

As discussed, bumping SPs.
Author
Member

Listing private issues is in my branch here, in “Allow listing private issues through API”: https://codeberg.org/nilsph/forgejo/src/branch/private-issues--api-list

Listing private issues is in my branch here, in “Allow listing private issues through API”: https://codeberg.org/nilsph/forgejo/src/branch/private-issues--api-list
Author
Member

GetIssueByIndex() returns public or private issues, as the case may be, in “Let GetIssueByIndex() return private issues, too” here: https://codeberg.org/nilsph/forgejo/src/branch/private-issues--api-list

Also, test the function. 🙂

`GetIssueByIndex()` returns public or private issues, as the case may be, in “Let GetIssueByIndex() return private issues, too” here: https://codeberg.org/nilsph/forgejo/src/branch/private-issues--api-list Also, test the function. 🙂
Author
Member

Getting individual public or private issues is implemented in “Allow retrieving individual private issues via API” in the private-issues and private-issues-backend branches.

Also, test the corresponding GetIssue() function.

Getting individual public or private issues is implemented in “Allow retrieving individual private issues via API” in the `private-issues` and `private-issues-backend` branches. Also, test the corresponding `GetIssue()` function.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
forge/forge#419
No description provided.