GitLab

Pulumi Official
Package maintained by Pulumi
v4.7.1 published on Thursday, Jun 30, 2022 by Pulumi

getProjectIssues

The gitlab.getProjectIssues data source allows to retrieve details about issues in a project.

Upstream API: GitLab API docs

Example Usage

using Pulumi;
using GitLab = Pulumi.GitLab;

class MyStack : Stack
{
    public MyStack()
    {
        var foo = Output.Create(GitLab.GetProject.InvokeAsync(new GitLab.GetProjectArgs
        {
            Id = "foo/bar/baz",
        }));
        var allWithFoo = foo.Apply(foo => Output.Create(GitLab.GetProjectIssues.InvokeAsync(new GitLab.GetProjectIssuesArgs
        {
            Project = foo.Id,
            Search = "foo",
        })));
    }

}
package main

import (
	"github.com/pulumi/pulumi-gitlab/sdk/v4/go/gitlab"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		foo, err := gitlab.LookupProject(ctx, &GetProjectArgs{
			Id: pulumi.StringRef("foo/bar/baz"),
		}, nil)
		if err != nil {
			return err
		}
		_, err = gitlab.GetProjectIssues(ctx, &GetProjectIssuesArgs{
			Project: foo.Id,
			Search:  pulumi.StringRef("foo"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var foo = Output.of(GitlabFunctions.getProject(GetProjectArgs.builder()
            .id("foo/bar/baz")
            .build()));

        final var allWithFoo = Output.of(GitlabFunctions.getProjectIssues(GetProjectIssuesArgs.builder()
            .project(foo.apply(getProjectResult -> getProjectResult.id()))
            .search("foo")
            .build()));

    }
}
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")
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",
}));
variables:
  foo:
    Fn::Invoke:
      Function: gitlab:getProject
      Arguments:
        id: foo/bar/baz
  allWithFoo:
    Fn::Invoke:
      Function: gitlab:getProjectIssues
      Arguments:
        project: ${foo.id}
        search: foo

Using getProjectIssues

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getProjectIssues(args: GetProjectIssuesArgs, opts?: InvokeOptions): Promise<GetProjectIssuesResult>
function getProjectIssuesOutput(args: GetProjectIssuesOutputArgs, opts?: InvokeOptions): Output<GetProjectIssuesResult>
def get_project_issues(assignee_id: Optional[int] = None,
                       assignee_username: Optional[str] = None,
                       author_id: Optional[int] = None,
                       confidential: Optional[bool] = None,
                       created_after: Optional[str] = None,
                       created_before: Optional[str] = None,
                       due_date: Optional[str] = None,
                       iids: Optional[Sequence[int]] = None,
                       issue_type: Optional[str] = None,
                       labels: Optional[Sequence[str]] = None,
                       milestone: Optional[str] = None,
                       my_reaction_emoji: Optional[str] = None,
                       not_assignee_ids: Optional[Sequence[int]] = None,
                       not_author_ids: Optional[Sequence[int]] = None,
                       not_labels: Optional[Sequence[str]] = None,
                       not_milestones: Optional[Sequence[str]] = None,
                       not_my_reaction_emojis: Optional[Sequence[str]] = None,
                       order_by: Optional[str] = None,
                       project: Optional[str] = None,
                       scope: Optional[str] = None,
                       search: Optional[str] = None,
                       sort: Optional[str] = None,
                       updated_after: Optional[str] = None,
                       updated_before: Optional[str] = None,
                       weight: Optional[int] = None,
                       with_labels_details: Optional[bool] = None,
                       opts: Optional[InvokeOptions] = None) -> GetProjectIssuesResult
def get_project_issues_output(assignee_id: Optional[pulumi.Input[int]] = None,
                       assignee_username: Optional[pulumi.Input[str]] = None,
                       author_id: Optional[pulumi.Input[int]] = None,
                       confidential: Optional[pulumi.Input[bool]] = None,
                       created_after: Optional[pulumi.Input[str]] = None,
                       created_before: Optional[pulumi.Input[str]] = None,
                       due_date: Optional[pulumi.Input[str]] = None,
                       iids: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None,
                       issue_type: Optional[pulumi.Input[str]] = None,
                       labels: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                       milestone: Optional[pulumi.Input[str]] = None,
                       my_reaction_emoji: Optional[pulumi.Input[str]] = None,
                       not_assignee_ids: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None,
                       not_author_ids: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None,
                       not_labels: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                       not_milestones: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                       not_my_reaction_emojis: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                       order_by: Optional[pulumi.Input[str]] = None,
                       project: Optional[pulumi.Input[str]] = None,
                       scope: Optional[pulumi.Input[str]] = None,
                       search: Optional[pulumi.Input[str]] = None,
                       sort: Optional[pulumi.Input[str]] = None,
                       updated_after: Optional[pulumi.Input[str]] = None,
                       updated_before: Optional[pulumi.Input[str]] = None,
                       weight: Optional[pulumi.Input[int]] = None,
                       with_labels_details: Optional[pulumi.Input[bool]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetProjectIssuesResult]
func GetProjectIssues(ctx *Context, args *GetProjectIssuesArgs, opts ...InvokeOption) (*GetProjectIssuesResult, error)
func GetProjectIssuesOutput(ctx *Context, args *GetProjectIssuesOutputArgs, opts ...InvokeOption) GetProjectIssuesResultOutput

> Note: This function is named GetProjectIssues in the Go SDK.

public static class GetProjectIssues 
{
    public static Task<GetProjectIssuesResult> InvokeAsync(GetProjectIssuesArgs args, InvokeOptions? opts = null)
    public static Output<GetProjectIssuesResult> Invoke(GetProjectIssuesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetProjectIssuesResult> getProjectIssues(GetProjectIssuesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: gitlab:index/getProjectIssues:getProjectIssues
  Arguments:
    # Arguments dictionary

The following arguments are supported:

Project string
AssigneeId int
AssigneeUsername string
AuthorId int
Confidential bool
CreatedAfter string
CreatedBefore string
DueDate string
Iids List<int>
IssueType string
Labels List<string>
Milestone string
MyReactionEmoji string
NotAssigneeIds List<int>
NotAuthorIds List<int>
NotLabels List<string>
NotMilestones List<string>
NotMyReactionEmojis List<string>
OrderBy string
Scope string
Search string
Sort string
UpdatedAfter string
UpdatedBefore string
Weight int
WithLabelsDetails bool
project String
assigneeId Integer
assigneeUsername String
authorId Integer
confidential Boolean
createdAfter String
createdBefore String
dueDate String
iids List<Integer>
issueType String
labels List<String>
milestone String
myReactionEmoji String
notAssigneeIds List<Integer>
notAuthorIds List<Integer>
notLabels List<String>
notMilestones List<String>
notMyReactionEmojis List<String>
orderBy String
scope String
search String
sort String
updatedAfter String
updatedBefore String
weight Integer
withLabelsDetails Boolean
project string
assigneeId number
assigneeUsername string
authorId number
confidential boolean
createdAfter string
createdBefore string
dueDate string
iids number[]
issueType string
labels string[]
milestone string
myReactionEmoji string
notAssigneeIds number[]
notAuthorIds number[]
notLabels string[]
notMilestones string[]
notMyReactionEmojis string[]
orderBy string
scope string
search string
sort string
updatedAfter string
updatedBefore string
weight number
withLabelsDetails boolean
project String
assigneeId Number
assigneeUsername String
authorId Number
confidential Boolean
createdAfter String
createdBefore String
dueDate String
iids List<Number>
issueType String
labels List<String>
milestone String
myReactionEmoji String
notAssigneeIds List<Number>
notAuthorIds List<Number>
notLabels List<String>
notMilestones List<String>
notMyReactionEmojis List<String>
orderBy String
scope String
search String
sort String
updatedAfter String
updatedBefore String
weight Number
withLabelsDetails Boolean

getProjectIssues Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

Issues List<Pulumi.GitLab.Outputs.GetProjectIssuesIssue>
Project string
AssigneeId int
AssigneeUsername string
AuthorId int
Confidential bool
CreatedAfter string
CreatedBefore string
DueDate string
Iids List<int>
IssueType string
Labels List<string>
Milestone string
MyReactionEmoji string
NotAssigneeIds List<int>
NotAuthorIds List<int>
NotLabels List<string>
NotMilestones List<string>
NotMyReactionEmojis List<string>
OrderBy string
Scope string
Search string
Sort string
UpdatedAfter string
UpdatedBefore string
Weight int
WithLabelsDetails bool
Id string

The provider-assigned unique ID for this managed resource.

Issues []GetProjectIssuesIssue
Project string
AssigneeId int
AssigneeUsername string
AuthorId int
Confidential bool
CreatedAfter string
CreatedBefore string
DueDate string
Iids []int
IssueType string
Labels []string
Milestone string
MyReactionEmoji string
NotAssigneeIds []int
NotAuthorIds []int
NotLabels []string
NotMilestones []string
NotMyReactionEmojis []string
OrderBy string
Scope string
Search string
Sort string
UpdatedAfter string
UpdatedBefore string
Weight int
WithLabelsDetails bool
id String

The provider-assigned unique ID for this managed resource.

issues List<GetProjectIssuesIssue>
project String
assigneeId Integer
assigneeUsername String
authorId Integer
confidential Boolean
createdAfter String
createdBefore String
dueDate String
iids List<Integer>
issueType String
labels List<String>
milestone String
myReactionEmoji String
notAssigneeIds List<Integer>
notAuthorIds List<Integer>
notLabels List<String>
notMilestones List<String>
notMyReactionEmojis List<String>
orderBy String
scope String
search String
sort String
updatedAfter String
updatedBefore String
weight Integer
withLabelsDetails Boolean
id string

The provider-assigned unique ID for this managed resource.

issues GetProjectIssuesIssue[]
project string
assigneeId number
assigneeUsername string
authorId number
confidential boolean
createdAfter string
createdBefore string
dueDate string
iids number[]
issueType string
labels string[]
milestone string
myReactionEmoji string
notAssigneeIds number[]
notAuthorIds number[]
notLabels string[]
notMilestones string[]
notMyReactionEmojis string[]
orderBy string
scope string
search string
sort string
updatedAfter string
updatedBefore string
weight number
withLabelsDetails boolean
id str

The provider-assigned unique ID for this managed resource.

issues Sequence[GetProjectIssuesIssue]
project str
assignee_id int
assignee_username str
author_id int
confidential bool
created_after str
created_before str
due_date str
iids Sequence[int]
issue_type str
labels Sequence[str]
milestone str
my_reaction_emoji str
not_assignee_ids Sequence[int]
not_author_ids Sequence[int]
not_labels Sequence[str]
not_milestones Sequence[str]
not_my_reaction_emojis Sequence[str]
order_by str
scope str
search str
sort str
updated_after str
updated_before str
weight int
with_labels_details bool
id String

The provider-assigned unique ID for this managed resource.

issues List<Property Map>
project String
assigneeId Number
assigneeUsername String
authorId Number
confidential Boolean
createdAfter String
createdBefore String
dueDate String
iids List<Number>
issueType String
labels List<String>
milestone String
myReactionEmoji String
notAssigneeIds List<Number>
notAuthorIds List<Number>
notLabels List<String>
notMilestones List<String>
notMyReactionEmojis List<String>
orderBy String
scope String
search String
sort String
updatedAfter String
updatedBefore String
weight Number
withLabelsDetails Boolean

Supporting Types

GetProjectIssuesIssue

assigneeIds List<Integer>
authorId Integer
closedAt String
closedByUserId Integer
confidential Boolean
createdAt String
description String
discussionLocked Boolean
discussionToResolve String
downvotes Integer
dueDate String
epicId Integer
epicIssueId Integer
externalId String
humanTimeEstimate String
humanTotalTimeSpent String
iid Integer
issueId Integer
issueLinkId Integer
issueType String
labels List<String>
links Map<String,String>
mergeRequestToResolveDiscussionsOf Integer
mergeRequestsCount Integer
milestoneId Integer
movedToId Integer
project String
references Map<String,String>
state String
subscribed Boolean
taskCompletionStatuses List<GetProjectIssuesIssueTaskCompletionStatus>
timeEstimate Integer
title String
totalTimeSpent Integer
updatedAt String
upvotes Integer
userNotesCount Integer
webUrl String
weight Integer

GetProjectIssuesIssueTaskCompletionStatus

completedCount Integer
count Integer
completedCount number
count number
completedCount Number
count Number

Package Details

Repository
https://github.com/pulumi/pulumi-gitlab
License
Apache-2.0
Notes

This Pulumi package is based on the gitlab Terraform Provider.