Create
Create a GitLab issue.
Create a new issue in a GitLab project. You need to provide a valid GitLab project ID and a personal access token with the necessary permissions.
yaml
type: "io.kestra.plugin.gitlab.issues.Create"
Examples
Create an issue in a GitLab project using a project access token.
yaml
id: gitlab_create_issue
namespace: company.team
tasks:
- id: create_issue
type: io.kestra.plugin.gitlab.issues.Create
url: https://gitlab.example.com
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_custom
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
projectId *Requiredstring
Project ID
GitLab project ID
title *Requiredstring
Issue title
token *Requiredstring
Personal Access Token
GitLab Personal Access Token
apiPath string
Default
/api/v4/projects
API Path
Custom API path for GitLab API endpoints
issueDescription string
Issue description
labels array
SubType string
Labels to assign to the issue
url string
Default
https://gitlab.com
GitLab URL
GitLab URL
Outputs
issueId string
Created issue ID
statusCode integer
HTTP status code
webUrl string
Issue web URL