GitLab API

GitlabTool

Actions1095

Merge_requests → getApiV4ProjectsIdMergeRequestsMergeRequestIidClosesIssues

AI-generated

Summary

Retrieve the list of issues closed by a specific merge request in a GitLab project.

Inputs

  • id (required) — The ID or URL-encoded path of the GitLab project containing the merge request.
  • merge_request_iid (required) — The internal ID (IID) of the merge request within the specified project.
  • page — The page number of results to retrieve, for pagination (optional). Defaults to 1 if not specified.
  • per_page — The number of items to return per page, for pagination (optional). Defaults to 20 if not specified.

Output shape

a paginated list (array) of issues that are closed by the specified merge request

Supports pagination via 'page' and 'per_page' query parameters. Returns only issues closed by the given merge request within the project identified by 'id'. Uses GET HTTP method on the path '/api/v4/projects/{id}/merge_requests/{merge_request_iid}/closes_issues'. Requires authentication unless 'Skip Authentication' is enabled.

Examples

Example 1: Fetch first page of issues closed by merge request IID 5 in project 'my-group/my-project'

Set 'id' to 'my-group/my-project', 'merge_request_iid' to 5, 'page' to 1, optionally set 'per_page' to 20 (default).

Links

Discussion