Update Work Item Fields
az_workitem_updateModify work item fields and post discussion comments in Azure DevOps. Provide work item ID and field changes or a history comment to update existing work items.
Instructions
以 REST API 更新 work item 欄位(json-patch 由 server 組裝,僅允許 /fields/*)。fields 的 key 為欄位參考名稱,例如 {"System.State": "Resolved"};historyComment 會寫入 System.History(等同在 Discussion 留言)。fields 與 historyComment 至少要提供一個。預設 organization 為 https://dev.azure.com/SKMHHIS。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | No | 欄位參考名稱 → 新值,例如 {"System.State": "Resolved"} | |
| workItemId | Yes | Work item ID | |
| historyComment | No | 寫入 System.History 的留言 |