GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation allows users to post a time estimate for a specific merge request in a GitLab project. It is useful for project management and tracking the estimated time required to complete a merge request. For example, a developer or project manager can set or update the time estimate for a merge request to better plan and allocate resources.

Use Case Examples

  1. Setting a time estimate for a merge request to communicate expected work duration.
  2. Updating the time estimate as the scope of the merge request changes.

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 but POST is used for this operation.
Path Parameters Parameters required in the URL path to identify the project and merge request.

Output

JSON

  • time_estimate - The time estimate set for the merge request, typically in seconds.
  • merge_request_iid - The internal ID of the merge request for which the time estimate was set.
  • project_id - The ID of the project containing the merge request.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID and merge request IID are correct and exist in the GitLab instance.
  • Verify that the API key has sufficient permissions to update merge request time estimates.
  • Check the base URL to ensure it points to the correct GitLab instance.
  • Common error: 401 Unauthorized - indicates authentication failure; verify API key and permissions.
  • Common error: 404 Not Found - indicates the project or merge request does not exist or is inaccessible.

Links

Discussion