ProjectIssueBoard

class ProjectIssueBoard : KotlinCustomResource

The gitlab.ProjectIssueBoard resource allows to manage the lifecycle of a Project Issue Board.

NOTE: If the board lists are changed all lists will be recreated. Upstream API: GitLab REST API docs

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gitlab.Project;
import com.pulumi.gitlab.ProjectArgs;
import com.pulumi.gitlab.User;
import com.pulumi.gitlab.UserArgs;
import com.pulumi.gitlab.ProjectMembership;
import com.pulumi.gitlab.ProjectMembershipArgs;
import com.pulumi.gitlab.ProjectMilestone;
import com.pulumi.gitlab.ProjectMilestoneArgs;
import com.pulumi.gitlab.ProjectIssueBoard;
import com.pulumi.gitlab.ProjectIssueBoardArgs;
import com.pulumi.gitlab.inputs.ProjectIssueBoardListArgs;
import com.pulumi.resources.CustomResourceOptions;
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) {
var exampleProject = new Project("exampleProject", ProjectArgs.builder()
.description("Lorem Ipsum")
.visibilityLevel("public")
.build());
var exampleUser = new User("exampleUser", UserArgs.builder()
.username("example")
.email("example@example.com")
.password("example1$$$")
.build());
var exampleProjectMembership = new ProjectMembership("exampleProjectMembership", ProjectMembershipArgs.builder()
.projectId(exampleProject.id())
.userId(exampleUser.id())
.accessLevel("developer")
.build());
var exampleProjectMilestone = new ProjectMilestone("exampleProjectMilestone", ProjectMilestoneArgs.builder()
.project(exampleProject.id())
.title("m1")
.build());
var this_ = new ProjectIssueBoard("this", ProjectIssueBoardArgs.builder()
.project(exampleProject.id())
.lists(
ProjectIssueBoardListArgs.builder()
.assigneeId(exampleUser.id())
.build(),
ProjectIssueBoardListArgs.builder()
.milestoneId(exampleProjectMilestone.milestoneId())
.build())
.build(), CustomResourceOptions.builder()
.dependsOn(exampleProjectMembership)
.build());
var listSyntax = new ProjectIssueBoard("listSyntax", ProjectIssueBoardArgs.builder()
.project(exampleProject.id())
.lists(
ProjectIssueBoardListArgs.builder()
.assigneeId(exampleUser.id())
.build(),
ProjectIssueBoardListArgs.builder()
.milestoneId(exampleProjectMilestone.milestoneId())
.build())
.build(), CustomResourceOptions.builder()
.dependsOn(exampleProjectMembership)
.build());
}
}
resources:
exampleProject:
type: gitlab:Project
properties:
description: Lorem Ipsum
visibilityLevel: public
exampleUser:
type: gitlab:User
properties:
username: example
email: example@example.com
password: example1$$$
exampleProjectMembership:
type: gitlab:ProjectMembership
properties:
projectId: ${exampleProject.id}
userId: ${exampleUser.id}
accessLevel: developer
exampleProjectMilestone:
type: gitlab:ProjectMilestone
properties:
project: ${exampleProject.id}
title: m1
this:
type: gitlab:ProjectIssueBoard
properties:
project: ${exampleProject.id}
lists:
- assigneeId: ${exampleUser.id}
- milestoneId: ${exampleProjectMilestone.milestoneId}
options:
dependson:
- ${exampleProjectMembership}
listSyntax:
type: gitlab:ProjectIssueBoard
properties:
project: ${exampleProject.id}
lists:
- assigneeId: ${exampleUser.id}
- milestoneId: ${exampleProjectMilestone.milestoneId}
options:
dependson:
- ${exampleProjectMembership}

Import

You can import this resource with an id made up of {project-id}:{issue-board-id}, e.g.

$ pulumi import gitlab:index/projectIssueBoard:ProjectIssueBoard kanban 42:1

Properties

Link copied to clipboard
val assigneeId: Output<Int>?

The ID of the assignee the list should be scoped to. Requires a GitLab EE license.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val labels: Output<List<String>>?

The list of label names which the board should be scoped to. Requires a GitLab EE license.

Link copied to clipboard

The list of issue board lists

Link copied to clipboard
val milestoneId: Output<Int>?

The ID of the milestone the list should be scoped to. Requires a GitLab EE license.

Link copied to clipboard
val name: Output<String>

The name of the board.

Link copied to clipboard
val project: Output<String>

The ID or full path of the project maintained by the authenticated user.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val weight: Output<Int>?

The weight range from 0 to 9, to which the board should be scoped to. Requires a GitLab EE license.