Dashboard¶
Kanban boards (Kanban / Dashboard) are used to organize work items at the organization level. With the API, you can query an organization's board list and details and the list of items within a board, add an Issue or Pull Request to a board, modify its board state, or remove it from a board.
Boards belong to an organization. In the path, {owner} refers to the organization path.
Objects¶
| Object | Description | Related endpoint |
|---|---|---|
| Board | Board list and details under an organization | Get organization board list |
| Board item | List of Issue / PR items in a board | Query board content list |
| Item state | Modification of a board column / state | Modify board state |
| Item association | Add an Issue/PR to a board, update or remove its association | Add Issue or Pull Request to board |
Identification¶
- An organization is identified by
{owner}, and a board bykanban_id. - A work item is located by
{type}(such as issue or pull request) +{iid}; there is also a repository-scoped pathrepo/{repo}.
Common tasks¶
| Task | Endpoint |
|---|---|
| List organization boards | GET /api/v5/org/{owner}/kanban/list |
| Get board details | GET /api/v5/org/{owner}/kanban/{kanban_id}/detail |
| Query the board item list | GET /api/v5/org/{owner}/kanban/{kanban_id}/item_list |
| Add an Issue/PR to a board | POST /api/v5/org/{owner}/kanban/{kanban_id}/add_item |
| Modify an item's board state | PUT /api/v5/org/{owner}/kanban/{kanban_id}/state |
| Update the board associated with a work item | PUT /api/v5/org/{owner}/kanban/repo/{repo}/{type}/{iid} |
| Remove a work item from a board | DELETE /api/v5/org/{owner}/kanban/{kanban_id}/remove_item |
Notes¶
- The path uses the singular
org:/api/v5/org/{owner}/kanban/…, which differs from the organization member endpoints'/orgs/{org}/…. - Here
{owner}refers to the organization path, not the repository owner; boards are organization-level resources. - The endpoint that updates the board associated with a work item has a different path structure:
…/kanban/repo/{repo}/{type}/{iid}, withoutkanban_id. - Adding to a board and modifying the state are two separate actions:
add_itemcreates the association, andstatechanges the column / state; do not expect a single call to do both. - Writing board field values to an Issue uses the Issue group's
kanban_valuesendpoint; this group only handles the board-side association and state.
Endpoint list¶
This module contains 7 endpoints.
| # | Endpoint | Method and path | Description |
|---|---|---|---|
| 1 | Query board content list | GET /api/v5/org/{owner}/kanban/{kanban_id}/item_list |
This endpoint queries the list of content items in a board under the specified organization, supporting filtering by repository, source type (issue/merge_request), source state, … |
| 2 | Get organization board list | GET /api/v5/org/{owner}/kanban/list |
This endpoint retrieves the list of boards under the specified organization, supporting filtering by state and visibility and searching by name, sorting by newest or oldest with paginated results, and also providing board … |
| 3 | Get single board details | GET /api/v5/org/{owner}/kanban/{kanban_id}/detail |
This endpoint retrieves the details of a single board under the specified organization, including the board's ID, name, description, state, visibility, and update time, making it easy for users to view and … |
| 4 | Add Issue or Pull Request to board | POST /api/v5/org/{owner}/kanban/{kanban_id}/add_item |
This endpoint adds Issues and Pull Requests from the specified repository to a board of the specified organization; by submitting the repository path and the Issue… |
| 5 | Modify board state | PUT /api/v5/org/{owner}/kanban/{kanban_id}/state |
This endpoint modifies the state of a board under the specified organization, setting the board to open or closed. It locates the target board by the organization path and board ID, and … |
| 6 | Update the board associated with an Issue or Pull Request | PUT /api/v5/org/{owner}/kanban/repo/{repo}/{type}/{iid} |
This endpoint updates the board associated with the specified Issue or Pull Request. When calling it, you must provide the target board ID in the request body, … |
| 7 | Delete the Issue or Pull Request associated with a board | DELETE /api/v5/org/{owner}/kanban/{kanban_id}/remove_item |
This endpoint removes an Issue or Pull Request associated with the specified board. The request must provide the organization path and board ID and specify, as an array, … |
Markdown source: View on AtomGit·Content from the open-source project gitcode-dev/atomgit-api-doc