I would like to programmatically create Work Items using the Azure DevOps API from a web application. There are many resources on this like this one , so I have an idea on how to achieve it. What I'm uncertain about is how to assign values to highly customized fields using the.Net client. We've added a lot of custom drop downs and fields.
The customized field is defined in the path /fields/Custom.CustomFieldName
.
For example, i have a custom field named Fix Version
. I can assign value to it by referring to the path in below patchDocument:
new JsonPatchOperation()
{
Operation = Operation.Add,
Path = "/fields/Custom.FixVersion",
Value = "1.2.0.0"
}
You can get all the WIT Fields in your project using Method WorkItemTrackingHttpClientBase.GetFieldsAsync
. See client library here .
You can aslo check out Fields - List restful api.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.