GitLab API

GitlabTool

Actions1095

Merge_requests → getApiV4ProjectsIdMergeRequestsMergeRequestIidTimeStats

AI-generated

Summary

Retrieve the time tracking statistics for a specific merge request within a GitLab project by its project ID or URL-encoded path and the merge request's internal ID.

Inputs

  • id (required) — The ID or URL-encoded path of the GitLab project containing the merge request.
  • merge_request_iid (required) — The internal ID of the merge request within the project.
  • skipAuthentication — Optionally skip authentication for this request (default is false).
  • baseUrl — The base URL of the GitLab instance, defaults to https://gitlab.com if not specified.

Output shape

a single JSON object

The response contains the time stats details for the specified merge request, typically including time spent and time estimated. The output corresponds exactly to the GitLab API v4 endpoint /projects/{id}/merge_requests/{merge_request_iid}/time_stats accessed via GET method.

Links

Discussion