GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation allows importing a specific relation (such as issues, merge requests, CI pipelines, or milestones) into a GitLab project from a project export file. It is useful for automating the restoration or migration of project data by uploading the export file and specifying the relation to import.

Use Case Examples

  1. Importing issues from a project export file into a GitLab project.
  2. Migrating merge requests from one GitLab project to another by importing the relevant export file.

Properties

Name Meaning
Skip Authentication Whether 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 (GET, POST, PUT, DELETE, HEAD, PATCH).
path The project path and name where the relation will be imported.
file The project export file from which to extract the relation to import.
relation The type of relation to import; must be one of issues, merge_requests, ci_pipelines, or milestones.

Output

JSON

  • status - The status of the import operation.
  • message - Any message returned from the import operation, such as success or error details.

Dependencies

  • GitLab API authentication token or credentials

Troubleshooting

  • Ensure the project export file is correctly formatted and accessible.
  • Verify that the specified relation is one of the allowed values: issues, merge_requests, ci_pipelines, or milestones.
  • Check that the project path is correct and the user has permission to import data into the project.
  • Authentication errors may occur if the API token is invalid or missing; ensure proper credentials are provided.

Links

Discussion