get Project Issues
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
A collection of arguments for invoking getProjectIssues.
Return
A collection of values returned by getProjectIssues.
Parameters
Return issues assigned to the given user id. Mutually exclusive with assignee_username. None returns unassigned issues. Any returns issues with an assignee.
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.
Return issues created by the given user id. Combine with scope=all or scope=assignedtome.
Filter confidential or public issues.
Return issues created on or after the given time. Expected in ISO 8601 format (2019-03-15T08:00:00Z)
Return issues created on or before the given time. Expected in ISO 8601 format (2019-03-15T08:00:00Z)
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.
Return only the issues having the given iid
Filter to a given type of issue. Valid values are issue incident test_case.
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.
The milestone title. None lists all issues with no milestone. Any lists all issues that have an assigned milestone.
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.
Return issues that do not match the assignee id.
Return issues that do not match the author id.
Return issues that do not match the labels.
Return issues that do not match the milestone.
Return issues not reacted by the authenticated user by the given emoji.
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
The name or id of the project.
Return issues for the given scope. Valid values are created_by_me
, assigned_to_me
, all
. Defaults to all.
Search project issues against their title and description
Return issues sorted in asc or desc order. Default is desc
Return issues updated on or after the given time. Expected in ISO 8601 format (2019-03-15T08:00:00Z)
Return issues updated on or before the given time. Expected in ISO 8601 format (2019-03-15T08:00:00Z)
Return issues with the specified weight. None returns issues with no weight assigned. Any returns issues with a weight assigned.
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
Builder for com.pulumi.gitlab.kotlin.inputs.GetProjectIssuesPlainArgs.