
GitLab Search
CertifiedSearch issues in a project
GitLab Search
Search issues in a project
Queries GitLab issues for the target project via the REST API. Requires projectId and token; state defaults to opened. Supports custom url and apiPath for self-hosted GitLab and renders templated values before the request.
type: io.kestra.plugin.gitlab.issues.SearchExamples
Search for issues in a GitLab project using an access token.
id: gitlab_search_issues
namespace: company.team
tasks:
- id: search_issues
type: io.kestra.plugin.gitlab.issues.Search
token: "{{ secret('GITLAB_TOKEN') }}"
projectId: "123"
search: "bug"
state: "opened"
labels:
- bug
- critical
Search for issues in a GitLab project with custom API path for self-hosted GitLab.
id: gitlab_search_issues
namespace: company.team
tasks:
- id: search_issues
type: io.kestra.plugin.gitlab.issues.Search
url: https://gitlab.example.com
apiPath: /api/v4/projects
token: "{{ secret('GITLAB_TOKEN') }}"
projectId: "123"
search: "bug"
state: "opened"
labels:
- bug
- critical
Properties
projectId *Requiredstring
Project ID or path
Numeric project ID or URL-encoded project path rendered from the context to build API endpoints.
token *Requiredstring
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.
apiPath string
/api/v4/projectsProjects 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.
labels array
Labels to filter by
Labels rendered from the context and comma-joined for the GitLab API.
pluginDefaultsRef Non-dynamicstring
Reference (ref) of the pluginDefaults to apply to this task.
search string
Search query
Free-text query matched against issue title and description.
state string
openedIssue state
Filter by state: opened, closed, or all; defaults to opened when not provided.
url string
https://gitlab.comGitLab API base URL
Base URL of the GitLab instance; defaults to https://gitlab.com. Override for self-hosted installations.
Outputs
count integer
Number of issues found
Count of issues returned by the request.
issues array
Found issues
statusCode integer
HTTP status code
HTTP response code from the GitLab API.