getProjectIssues

The gitlab.getProjectIssues data source allows to retrieve details about issues in a project. Upstream API: GitLab API docs

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as gitlab from "@pulumi/gitlab";
const foo = gitlab.getProject({
id: "foo/bar/baz",
});
const allWithFoo = foo.then(foo => gitlab.getProjectIssues({
project: foo.id,
search: "foo",
}));
import pulumi
import pulumi_gitlab as gitlab
foo = gitlab.get_project(id="foo/bar/baz")
all_with_foo = gitlab.get_project_issues(project=foo.id,
search="foo")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using GitLab = Pulumi.GitLab;
return await Deployment.RunAsync(() =>
{
var foo = GitLab.GetProject.Invoke(new()
{
Id = "foo/bar/baz",
});
var allWithFoo = GitLab.GetProjectIssues.Invoke(new()
{
Project = foo.Apply(getProjectResult => getProjectResult.Id),
Search = "foo",
});
});
package main
import (
"github.com/pulumi/pulumi-gitlab/sdk/v8/go/gitlab"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
foo, err := gitlab.LookupProject(ctx, &gitlab.LookupProjectArgs{
Id: pulumi.StringRef("foo/bar/baz"),
}, nil)
if err != nil {
return err
}
_, err = gitlab.GetProjectIssues(ctx, &gitlab.GetProjectIssuesArgs{
Project: foo.Id,
Search: pulumi.StringRef("foo"),
}, nil)
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gitlab.GitlabFunctions;
import com.pulumi.gitlab.inputs.GetProjectArgs;
import com.pulumi.gitlab.inputs.GetProjectIssuesArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var foo = GitlabFunctions.getProject(GetProjectArgs.builder()
.id("foo/bar/baz")
.build());
final var allWithFoo = GitlabFunctions.getProjectIssues(GetProjectIssuesArgs.builder()
.project(foo.applyValue(getProjectResult -> getProjectResult.id()))
.search("foo")
.build());
}
}
variables:
foo:
fn::invoke:
function: gitlab:getProject
arguments:
id: foo/bar/baz
allWithFoo:
fn::invoke:
function: gitlab:getProjectIssues
arguments:
project: ${foo.id}
search: foo

Return

A collection of values returned by getProjectIssues.

Parameters

argument

A collection of arguments for invoking getProjectIssues.


suspend fun getProjectIssues(assigneeId: Int? = null, assigneeUsername: String? = null, authorId: Int? = null, confidential: Boolean? = null, createdAfter: String? = null, createdBefore: String? = null, dueDate: String? = null, iids: List<Int>? = null, issueType: String? = null, labels: List<String>? = null, milestone: String? = null, myReactionEmoji: String? = null, notAssigneeIds: List<Int>? = null, notAuthorIds: List<Int>? = null, notLabels: List<String>? = null, notMilestone: String? = null, notMyReactionEmojis: List<String>? = null, orderBy: String? = null, project: String, scope: String? = null, search: String? = null, sort: String? = null, updatedAfter: String? = null, updatedBefore: String? = null, weight: Int? = null, withLabelsDetails: Boolean? = null): GetProjectIssuesResult

Return

A collection of values returned by getProjectIssues.

Parameters

assigneeId

Return issues assigned to the given user id. Mutually exclusive with assignee_username. None returns unassigned issues. Any returns issues with an assignee.

assigneeUsername

Return issues assigned to the given username. Similar to assigneeid and mutually exclusive with assigneeid. In GitLab CE, the assignee_username array should only contain a single value. Otherwise, an invalid parameter error is returned.

authorId

Return issues created by the given user id. Combine with scope=all or scope=assignedtome.

confidential

Filter confidential or public issues.

createdAfter

Return issues created on or after the given time. Expected in ISO 8601 format (2019-03-15T08:00:00Z)

createdBefore

Return issues created on or before the given time. Expected in ISO 8601 format (2019-03-15T08:00:00Z)

dueDate

Return issues that have no due date, are overdue, or whose due date is this week, this month, or between two weeks ago and next month. Accepts: 0 (no due date), any, today, tomorrow, overdue, week, month, nextmonthandprevioustwo_weeks.

iids

Return only the issues having the given iid

issueType

Filter to a given type of issue. Valid values are issue incident test_case.

labels

Return issues with labels. Issues must have all labels to be returned. None lists all issues with no labels. Any lists all issues with at least one label. No+Label (Deprecated) lists all issues with no labels. Predefined names are case-insensitive.

milestone

The milestone title. None lists all issues with no milestone. Any lists all issues that have an assigned milestone.

myReactionEmoji

Return issues reacted by the authenticated user by the given emoji. None returns issues not given a reaction. Any returns issues given at least one reaction.

notAssigneeIds

Return issues that do not match the assignee id.

notAuthorIds

Return issues that do not match the author id.

notLabels

Return issues that do not match the labels.

notMilestone

Return issues that do not match the milestone.

notMyReactionEmojis

Return issues not reacted by the authenticated user by the given emoji.

orderBy

Return issues ordered by. Valid values are created_at, updated_at, priority, due_date, relative_position, label_priority, milestone_due, popularity, weight. Default is created_at

project

The name or id of the project.

scope

Return issues for the given scope. Valid values are created_by_me, assigned_to_me, all. Defaults to all.

search

Search project issues against their title and description

sort

Return issues sorted in asc or desc order. Default is desc

updatedAfter

Return issues updated on or after the given time. Expected in ISO 8601 format (2019-03-15T08:00:00Z)

updatedBefore

Return issues updated on or before the given time. Expected in ISO 8601 format (2019-03-15T08:00:00Z)

weight

Return issues with the specified weight. None returns issues with no weight assigned. Any returns issues with a weight assigned.

withLabelsDetails

If true, the response returns more details for each label in labels field: :name, :color, :description, :descriptionhtml, :textcolor. Default is false.

See also


Return

A collection of values returned by getProjectIssues.

Parameters

argument

Builder for com.pulumi.gitlab.kotlin.inputs.GetProjectIssuesPlainArgs.

See also