get_issue_statuses
Retrieve available issue statuses for a specific project using the Taiga MCP Bridge, enabling efficient project management and workflow tracking.
Instructions
Lists the available statuses for issues within a specific project.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | ||
| session_id | Yes |
Implementation Reference
- src/server.py:762-780 (handler)The handler function for the 'get_issue_statuses' MCP tool. It authenticates the session, retrieves the Taiga client wrapper, and calls the API to list issue statuses for the specified project.@mcp.tool("get_issue_statuses", description="Lists the available statuses for issues within a specific project.") def get_issue_statuses(session_id: str, project_id: int) -> List[Dict[str, Any]]: """Retrieves the list of issue statuses for a project.""" logger.info( f"Executing get_issue_statuses for project {project_id}, session {session_id[:8]}...") taiga_client_wrapper = _get_authenticated_client(session_id) # Use wrapper variable name try: # Use pytaigaclient syntax: client.resource.list(project_id=...) statuses = taiga_client_wrapper.api.issue_statuses.list(project_id=project_id) # return [s.to_dict() for s in statuses] # Remove .to_dict() return statuses # Return directly except TaigaException as e: logger.error( f"Taiga API error getting issue statuses for project {project_id}: {e}", exc_info=False) raise e except Exception as e: logger.error( f"Unexpected error getting issue statuses for project {project_id}: {e}", exc_info=True) raise RuntimeError(f"Server error getting issue statuses: {e}")