azure-devopsazure-devops-extensions

How to Exclude Selected Values from Other Dropdowns in Azure DevOps Work Items?


I'm working on an Azure DevOps extension where I have three dropdown inputs in a work item form. The requirement is that if a value is selected in one dropdown, that value should not be available in the other two dropdowns.

For example:

I need guidance on the best approach to achieve this functionality. Is there a way to dynamically update the options of the dropdowns based on the selections of the others in Azure DevOps work item form? Any example code or detailed steps would be highly appreciated.


Solution

  • I achieved it with the reference of Multivalue control extension provided by microsoft

    Here are the steps that can be followed:

    1. Added an additional input in the azure-devops-extension.json file to specify the dependent dropdowns.
    2. Filtered the options based on the dependent fields and displayed the results.