GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation retrieves time statistics for a specific merge request in a GitLab project using the GitLab API v4. It is useful for tracking the time spent on a merge request, which can help in project management and monitoring development progress. For example, a user can get the total time spent on a merge request to analyze team productivity or estimate future task durations.

Use Case Examples

  1. Retrieve time stats for merge request IID 42 in project with ID 'my-group/my-project' to monitor development time.
  2. Fetch time statistics for a merge request to report on time spent for billing or project tracking.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
Authentication Type of authentication used, default is GitLab API key.
baseUrl Base URL of the GitLab instance, default is https://gitlab.com.
Method HTTP method to use for the request, default is GET.
Path Parameters Parameters for the API path including project ID and merge request internal ID.

Output

JSON

  • id - The project ID or URL-encoded path used in the request.
  • merge_request_iid - The internal ID of the merge request.
  • time_stats - The time statistics data for the specified merge request, including time spent and estimated time.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID and merge request IID are correctly specified and exist in the GitLab instance.
  • Verify that the API key credential has sufficient permissions to access merge request time statistics.
  • Check the base URL if using a self-hosted GitLab instance to ensure it is correct.
  • Common error: 404 Not Found - The project or merge request does not exist or is not accessible with the provided credentials.
  • Common error: 401 Unauthorized - Authentication failed, check the API key or authentication settings.

Links

Discussion