GitLab API

GitlabTool

Actions1000

Overview

This node operation retrieves a specific issue link from a GitLab project using the GitLab API. It is useful for scenarios where you need to fetch detailed information about the relationship between issues within a project, such as tracking dependencies or related tasks. For example, a project manager might use this to get the details of a linked issue to understand its status or impact.

Use Case Examples

  1. Fetch the details of a linked issue in a GitLab project to display in a project management dashboard.
  2. Retrieve issue link information to automate notifications or updates based on issue relationships.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is GET.
Path Parameters Parameters required in the API path to identify the project, issue, and issue link.

Output

JSON

  • id - The unique identifier of the issue link.
  • source_project_id - The ID of the source project where the issue link originates.
  • source_issue_iid - The internal ID of the source issue in the project.
  • target_project_id - The ID of the target project where the linked issue resides.
  • target_issue_iid - The internal ID of the target issue in the project.
  • link_type - The type of relationship between the issues (e.g., relates_to, blocks, duplicates).

Dependencies

  • GitLab API authentication token

Troubleshooting

  • Ensure the path parameters (project ID, issue IID, and issue link ID) are correctly provided and valid to avoid 404 errors.
  • If authentication is skipped, the request may fail due to lack of permissions; ensure proper authentication is configured unless intentionally skipped.
  • Check the base URL if using a self-hosted GitLab instance to avoid connection errors.

Links

Discussion