GitLab API icon

GitLab API

Gitlab

Actions1062

Merge_requests → getApiV4ProjectsIdMergeRequestsMergeRequestIidTimeStats

AI-generated

Summary

Retrieve the time tracking statistics for a specific merge request in a GitLab project by providing the project ID or URL-encoded path and the internal merge request IID.

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 to fetch time statistics for.
  • skipAuthentication — Optional flag to skip authentication; defaults to false, meaning authentication is used.
  • baseUrl — Optional custom base URL for the GitLab instance; defaults to https://gitlab.com.
  • method — HTTP method to use; defaults to GET and should remain GET for this operation.

Output shape

a single JSON object representing the time statistics of the specified merge request

The output includes aggregate time tracking data such as total time spent and time estimated on the merge request. Authentication is required unless explicitly skipped. The node uses the GitLab API v4 endpoint at /api/v4/projects/{id}/merge_requests/{merge_request_iid}/time_stats.

Links

Discussion