question

SachinSarawgi-0377 avatar image
0 Votes"
SachinSarawgi-0377 asked ·

REST API for setting multi select field type in Azure DevOps

Hi, I have installed the following plugin to support the multi-value type field in Azure DevOps
https://marketplace.visualstudio.com/items?itemName=ms-devlabs.vsts-extensions-multivalue-control#:~:text=Azure%20Devops%20Services,used%20to%20back%20the%20extension.

I am able to configure the option for this field by separating using "semicolon". like "A; B; C".
I can also see this field in my work item and able to set the values.

I need help with how can I update this multivalue type field through REST API.
I want to change the value of the work item which has this multi-value type field through REST API. I have already tried updating them using the following approaches
1. "A; B"
2. "A, B"
3. "[A, B]"
4. "A;B"
5. "A,B"

It sets up the value which I am sending using option 1, but it adds those as an extra option though the option already exists with that value.
I can see extra spaces on the option which I am sending through REST API, but I have checked my JSON there is no extra space (using option 4).

79547-image.png



not-supported
image.png (13.9 KiB)
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

MayankBargali-MSFT avatar image
0 Votes"
MayankBargali-MSFT answered ·

Hi @SachinSarawgi-0377

DevOps is currently not supported in the Q&A forums, the supported products are listed over here https://docs.microsoft.com/en-us/answers/products (more to be added later on).

You can ask the experts in the dedicated forum over here: https://stackoverflow.com/questions/tagged/devops

Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.

·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.