get_columns
Retrieve all columns from a specified board in Yokan Kanban Board to organize and manage workflow tasks effectively.
Instructions
Retrieves all columns for a given board.
Args: board_id (int): The ID of the board to retrieve columns from. auth (AuthContext): The authentication context containing user ID and token.
Returns: List[yokan_models.Column]: A list of column objects.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| board_id | Yes | ||
| auth | Yes |
Implementation Reference
- src/main.py:234-251 (handler)The 'get_columns' handler function retrieves columns for a specified board from the Yokan client and returns them as a list of Column objects.
async def get_columns( board_id: int, auth: AuthContext, ) -> List[yokan_models.Column]: """Retrieves all columns for a given board. Args: board_id (int): The ID of the board to retrieve columns from. auth (AuthContext): The authentication context containing user ID and token. Returns: List[yokan_models.Column]: A list of column objects. """ board = await yokan_client.get_board(board_id=board_id, token=auth.token) if "columns" not in board.data: return [] return [yokan_models.Column(**col) for col in board.data["columns"].values()]