get_issue
Retrieve detailed information about a specific Redmine issue, including comments and attachments, by providing the issue ID.
Instructions
Returns details of the specified issue, including comments and attachments.
Args:
issue_id: Issue numberInput Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| issue_id | Yes |
Implementation Reference
- redmine_mcp_server.py:63-74 (handler)The actual implementation of the get_issue logic, which communicates with the Redmine API via redminelib and handles errors.
def get_issue(self, issue_id: int) -> Dict[str, Any]: try: issue = self._redmine.issue.get( issue_id, include=["journals", "attachments"] ) return _issue_dict(issue, detailed=True) except ResourceNotFoundError: raise RedmineError(f"Issue not found: #{issue_id}") except (AuthError, ForbiddenError) as e: raise RedmineError(f"Authentication failed: {e}") from e except Exception as e: raise RedmineError(f"get_issue failed: {e}") from e - redmine_mcp_interface.py:154-166 (registration)The tool registration for "get_issue" in the MCP interface using the @mcp.tool() decorator.
@mcp.tool() def get_issue(issue_id: int) -> Dict[str, Any]: """Returns details of the specified issue, including comments and attachments. Args: issue_id: Issue number """ logger.info(f"tool=get_issue issue_id={issue_id}") try: return _client().get_issue(issue_id) except RedmineError as e: logger.error(f"get_issue error: {e}") raise