Manages a Work Item in Azure Devops.
resource "azuredevops_project" "example" {
name = "Example Project"
work_item_template = "Agile"
version_control = "Git"
visibility = "private"
description = "Managed by Terraform"
}
resource "azuredevops_workitem" "example" {
project_id = data.azuredevops_project.example.id
title = "Example Work Item"
type = "Issue"
state = "Active"
tags = ["Tag"]
}
resource "azuredevops_project" "example" {
name = "Example Project"
work_item_template = "Agile"
version_control = "Git"
visibility = "private"
description = "Managed by Terraform"
}
resource "azuredevops_workitem" "example" {
project_id = data.azuredevops_project.example.id
title = "Example Work Item"
type = "Issue"
state = "Active"
tags = ["Tag"]
custom_fields = {
example : "example"
}
}
The following arguments are supported:
project_id
- (Required) The ID of the Project.
title
- (Required) The Title of the Work Item.
type
- (Required) The Type of the Work Item. The work item type varies depending on the process used when creating the project(Agile
, Basic
, Scrum
, Scrum
). See Work Item Types for more details.
area_path
- (Optional) Specifies the area where the Work Item is used.
custom_fields
- (Optional) Specifies a list with Custom Fields for the Work Item.
iteration_path
- (Optional) Specifies the iteration in which the Work Item is used.
state
- (Optional) The state of the Work Item. The four main states that are defined for the User Story (Agile
) are New
, Active
, Resolved
, and Closed
. See Workflow states for more details.
tags
- (Optional) Specifies a list of Tags.
In addition to the Arguments listed above - the following Attributes are exported:
id
- The ID of the Work Item.Work Item resource does not support import.