microsoft / vsts-extension-multivalue-control

A work item form control which allows selection of multiple values.
MIT License
46 stars 44 forks source link

Query the value of the control via API call #209

Closed jggascent2021 closed 1 year ago

jggascent2021 commented 1 year ago

Is it possible to get the value of the control via an API call? I am writing a script to update this value by reading a string from another key-value store and overwriting the contents of this field to avoid having to manually update it frequently.

Thanks in advance!

madkoo commented 1 year ago

It should be possible. If you want to update the value in work item, you can take a look at this API: https://docs.microsoft.com/en-us/rest/api/azure/devops/wit/work-items/get-work-item?view=azure-devops-rest-6.0&tabs=HTTP#get-work-item

If you want to change the control field value then take a look at this API documentation: https://docs.microsoft.com/en-us/rest/api/azure/devops/processes/fields?view=azure-devops-rest-6.0