gitlab_project_issue (Resource)

The gitlab_project_issue resource allows to manage the lifecycle of an issue within a project.

Upstream API: GitLab API docs

Example Usage

resource "gitlab_project" "foo" {
  name             = "example project"
  description      = "Lorem Ipsum"
  visibility_level = "public"
}

resource "gitlab_project_issue" "welcome_issue" {
  project           = gitlab_project.foo.id
  title             = "Welcome!"
  description       = <<EOT
  Welcome to the ${gitlab_project.foo.name} project!

  EOT
  discussion_locked = true
}

output "welcome_issue_web_url" {
  value = data.gitlab_project_issue.web_url
}
  Welcome to the ${gitlab_project.foo.name} project!

  EOT
  discussion_locked = true
}

output "welcome_issue_web_url" {
  value = data.gitlab_project_issue.web_url
}

Schema

Required

Optional

Read-Only

Nested Schema for task_completion_status

Read-Only:

Import

Import is supported using the following syntax:

# You can import this resource with an id made up of `{project-id}:{issue-id}`, e.g.
terraform import gitlab_project_issue.welcome_issue 42:1