GitLab API

GitlabTool

Actions905

Overview

This node operation retrieves related issues for a specific merge request in a GitLab project using the GitLab API. It is useful for developers and project managers who want to track issues linked to a particular merge request to understand dependencies or related work items. For example, it can be used to fetch all issues related to a merge request to review their status before merging code changes.

Use Case Examples

  1. Fetch related issues for merge request IID 42 in project with ID 'my-group/my-project' to review dependencies before merging.
  2. Retrieve related issues to automate notifications or updates in project management tools.

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.
Query Parameters Optional query parameters for pagination such as page number and items per page.
Path Parameters Required path parameters identifying the project and merge request.

Output

JSON

  • related_issues - List of issues related to the specified merge request.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID and merge request IID are correct and accessible with the provided credentials.
  • Check that the GitLab API base URL is correct, especially if using a self-hosted GitLab instance.
  • Verify that the API key has sufficient permissions to read merge requests and related issues.
  • Common errors include 404 Not Found if the project or merge request does not exist, and 401 Unauthorized if authentication fails.

Links

Discussion