REST API for setting multi select field type in Azure DevOps

Sachin Sarawgi 1 Reputation point
2021-03-19T08:34:47.567+00:00

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 Monitored
Not Monitored
Tag not monitored by Microsoft.
35,797 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. MayankBargali-MSFT 67,991 Reputation points
    2021-03-22T03:34:57.467+00:00

    Hi @Sachin Sarawgi

    DevOps is currently not supported in the Q&A forums, the supported products are listed over here https://learn.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.

    0 comments No comments