Skip to main content
Glama

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
NameRequiredDescriptionDefault
project_idYes
session_idYes

Implementation Reference

  • 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}")

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/talhaorak/pytaiga-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server