GitLab Create

GitLab Create

Certified

Create issue in a project

Creates an issue through the GitLab REST API for the specified project. Requires projectId, token, and title; description and labels are optional. Supports custom url and apiPath for self-hosted GitLab and renders templated values before sending.

yaml
type: io.kestra.plugin.gitlab.issues.Create

Create an issue in a GitLab project using an access token.

yaml
id: gitlab_create_issue
namespace: company.team

tasks:
  - id: create_issue
    type: io.kestra.plugin.gitlab.issues.Create
    token: "{{ secret('GITLAB_TOKEN') }}"
    projectId: "123"
    title: "Bug report"
    issueDescription: "Found a critical bug"
    labels:
      - bug
      - critical

Create an issue with custom API path for self-hosted GitLab.

yaml
id: gitlab_create_issue_self_hosted
namespace: company.team

tasks:
  - id: create_issue
    type: io.kestra.plugin.gitlab.issues.Create
    url: https://gitlab.example.com
    apiPath: /api/v4/projects
    token: "{{ secret('GITLAB_TOKEN') }}"
    projectId: "123"
    title: "Bug report"
    issueDescription: "Found a critical bug"
Properties

Project ID or path

Numeric project ID or URL-encoded project path rendered from the context to build API endpoints.

Issue title

Title text for the new issue (required).

Access token used for API calls

GitLab Personal/Project/Group Access Token sent as the PRIVATE-TOKEN header; requires scopes that cover the requested API operations. See the GitLab Authentication docs.

Default/api/v4/projects

Projects API path

Projects API prefix appended before the project ID; defaults to /api/v4/projects. Override when fronting GitLab with a proxy or custom base path.

Issue description

Optional Markdown or text body for the issue.

SubTypestring

Labels to assign to the issue

Rendered list of labels applied to the issue.

Reference (ref) of the pluginDefaults to apply to this task.

Defaulthttps://gitlab.com

GitLab API base URL

Base URL of the GitLab instance; defaults to https://gitlab.com. Override for self-hosted installations.

Issue ID

HTTP status code

HTTP response code from the GitLab API.

Issue URL

Web URL of the created issue.