get_issue_priorities
Retrieve available issue priorities for a specific project in Taiga to streamline issue management and categorization. Requires session ID and project ID for access.
Instructions
Lists the available priorities 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:783-802 (handler)The handler function for the 'get_issue_priorities' MCP tool. It authenticates the session, calls the Taiga API to list issue priorities for the given project, and returns the list of priorities.@mcp.tool("get_issue_priorities", description="Lists the available priorities for issues within a specific project.") def get_issue_priorities(session_id: str, project_id: int) -> List[Dict[str, Any]]: """Retrieves the list of issue priorities for a project.""" logger.info( f"Executing get_issue_priorities 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=...) # Update resource name: priorities -> issue_priorities priorities = taiga_client_wrapper.api.issue_priorities.list(project_id=project_id) # return [p.to_dict() for p in priorities] # Remove .to_dict() return priorities # Return directly except TaigaException as e: logger.error( f"Taiga API error getting issue priorities for project {project_id}: {e}", exc_info=False) raise e except Exception as e: logger.error( f"Unexpected error getting issue priorities for project {project_id}: {e}", exc_info=True) raise RuntimeError(f"Server error getting issue priorities: {e}")