microsoft / terraform-provider-azuredevops

Terraform Azure DevOps provider
https://www.terraform.io/docs/providers/azuredevops/
MIT License
385 stars 276 forks source link

Implement work item custom_fields #839

Open ghs opened 1 year ago

ghs commented 1 year ago

Community Note

Description

Custom fields in work items are of specific shape which as far I can see and read through the code is not implemented: https://github.com/microsoft/terraform-provider-azuredevops/pull/659/files#diff-d52cafbb405887e133170ccdec83c29154d37e34ac7b4e47e95b1942e93f3779.

The existing documentation also doesn't give a lot of info other than custom_fields = { example : "example" } for proper definition of them.

From ADO, custom fields, when created, could contain the following properties: is it from existing field or a new one, name, description, type, required with default value, and layout with multiple properties.

New or Affected Resource(s)

azuredevops_workitem

References

https://github.com/microsoft/terraform-provider-azuredevops/pull/659

xuzhang3 commented 1 year ago

potential config:

resource azuredevops_workitem_custom_field {

}

API: https://learn.microsoft.com/en-us/rest/api/azure/devops/processes/fields/add?view=azure-devops-rest-7.0&tabs=HTTP