gitlab_get_user_resolved_issues
Retrieve and analyze issues closed or resolved by a specific user on GitLab. Track contributions, assess impact, and analyze resolution details for performance reviews, knowledge sharing, or productivity insights.
Instructions
Get issues closed/resolved by a user
Find all issues that were closed or resolved by the specified user, showing their problem-solving contributions and impact.
Returns resolved issues with:
Issue details: original problem, resolution
Resolution info: how it was closed, related MRs
Timeline: resolution time, effort indicators
Impact: complexity, stakeholders affected
Recognition: contribution to project health
Use cases:
Track problem resolution contributions
Performance reviews and recognition
Knowledge base building
Team productivity analysis
Parameters:
user_id: Numeric user ID
username: Username string (use either user_id or username)
since: Resolved after date (YYYY-MM-DD)
until: Resolved before date (YYYY-MM-DD)
complexity: Filter by resolution complexity
sort: Sort order (closed, complexity, impact)
per_page: Results per page (default: 20)
page: Page number (default: 1)
Example: Get issues resolved this quarter
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| complexity | No | Filter by resolution complexity | |
| page | No | Page number for pagination Type: integer Range: ≥1 Default: 1 Example: 3 (to get the third page of results) Note: Use with per_page to navigate large result sets | |
| per_page | No | Number of results per page Type: integer Range: 1-100 Default: 20 Example: 50 (for faster browsing) Tip: Use smaller values (10-20) for detailed operations, larger (50-100) for listing | |
| since | No | Resolved after date (YYYY-MM-DD) | |
| sort | No | Sort order | closed |
| until | No | Resolved before date (YYYY-MM-DD) | |
| user_id | No | Numeric user ID | |
| username | No | Username string |
Implementation Reference
- src/mcp_gitlab/tool_handlers.py:806-827 (handler)Main handler function that implements the core logic for the 'gitlab_get_user_resolved_issues' tool. Parses input arguments and delegates to GitLabClient.get_user_resolved_issues() to fetch issues resolved by the specified user.def handle_get_user_resolved_issues(client: GitLabClient, arguments: Optional[Dict[str, Any]]) -> Dict[str, Any]: """Handle getting user's resolved issues""" user_id = get_argument(arguments, "user_id") username = get_argument(arguments, "username") since = get_argument(arguments, "since") until = get_argument(arguments, "until") complexity = get_argument(arguments, "complexity") sort = get_argument(arguments, "sort", "closed") per_page = get_argument(arguments, "per_page", DEFAULT_PAGE_SIZE) page = get_argument(arguments, "page", 1) return client.get_user_resolved_issues( user_id=user_id, username=username, since=since, until=until, complexity=complexity, sort=sort, per_page=per_page, page=page )
- src/mcp_gitlab/tool_definitions.py:952-966 (registration)Tool registration in the central TOOLS list used by the MCP server. Defines the tool name, description reference, and input schema for validation.types.Tool( name=TOOL_GET_USER_RESOLVED_ISSUES, description=desc.DESC_GET_USER_RESOLVED_ISSUES, inputSchema={ "type": "object", "properties": { "username": {"type": "string", "description": "Username string"}, "since": {"type": "string", "description": "Issues resolved after date (YYYY-MM-DD)"}, "until": {"type": "string", "description": "Issues resolved before date (YYYY-MM-DD)"}, "per_page": {"type": "integer", "description": desc.DESC_PER_PAGE, "default": DEFAULT_PAGE_SIZE, "minimum": 1, "maximum": MAX_PAGE_SIZE}, "page": {"type": "integer", "description": desc.DESC_PAGE_NUMBER, "default": 1, "minimum": 1} }, "required": ["username"] } ),
- Mapping of tool name constant to its handler function in the TOOL_HANDLERS dictionary, used by the server to dispatch tool calls.TOOL_GET_USER_REPORTED_ISSUES: handle_get_user_reported_issues, TOOL_GET_USER_RESOLVED_ISSUES: handle_get_user_resolved_issues,
- src/mcp_gitlab/constants.py:262-262 (helper)Constant defining the exact tool name string used throughout the codebase for consistency.TOOL_GET_USER_RESOLVED_ISSUES = "gitlab_get_user_resolved_issues"
- Detailed tool description string providing usage instructions, parameters, and examples, referenced in the tool registration.DESC_GET_USER_RESOLVED_ISSUES = """Get issues closed/resolved by a user Find all issues that were closed or resolved by the specified user, showing their problem-solving contributions and impact. Returns resolved issues with: - Issue details: original problem, resolution - Resolution info: how it was closed, related MRs - Timeline: resolution time, effort indicators - Impact: complexity, stakeholders affected - Recognition: contribution to project health Use cases: - Track problem resolution contributions - Performance reviews and recognition - Knowledge base building - Team productivity analysis Parameters: - user_id: Numeric user ID - username: Username string (use either user_id or username) - since: Resolved after date (YYYY-MM-DD) - until: Resolved before date (YYYY-MM-DD) - complexity: Filter by resolution complexity - sort: Sort order (closed, complexity, impact) - per_page: Results per page (default: 20) - page: Page number (default: 1) Example: Get issues resolved this quarter ``` { "username": "johndoe", "since": "2024-01-01", "until": "2024-03-31", "sort": "closed" } ```"""