1
0
Форкнуть 0
Azure DevOps extension to enable cascading picklists on the work item form
Перейти к файлу
Anton Kovalyov b1770e1ed3 Raise development version. 2019-08-02 10:58:28 -07:00
images Update documentation and manifest. Move marketplace related docs to separate folder. 2019-08-01 12:52:58 -07:00
marketplace Update documentation and manifest. Move marketplace related docs to separate folder. 2019-08-01 12:52:58 -07:00
src Handling empty manifest case (#5) 2019-08-01 15:01:38 -07:00
static Add meta tag for encoding in config html template. 2019-08-02 10:56:01 -07:00
.editorconfig New repo setup 2019-07-16 10:41:12 -07:00
.eslintrc.js Remove console log statement. Add warn to the eslint for console logs. 2019-07-29 14:20:38 -07:00
.gitignore New repo setup 2019-07-16 10:41:12 -07:00
CODE_OF_CONDUCT.md Initial commit 2019-07-15 11:14:28 -07:00
LICENSE Initial commit 2019-07-15 11:14:29 -07:00
README.md readme and details changes. minor workding change to manifest 2019-08-01 12:08:32 -07:00
azure-devops-extension-dev.json Raise development version. 2019-08-02 10:58:28 -07:00
azure-devops-extension.json Handling empty manifest case (#5) 2019-08-01 15:01:38 -07:00
package-lock.json Update lodash. 2019-07-29 16:04:49 -07:00
package.json Update lodash. 2019-07-29 16:04:49 -07:00
prettier.config.js New repo setup 2019-07-16 10:41:12 -07:00
tsconfig.json New repo setup 2019-07-16 10:41:12 -07:00
webpack.config.js New repo setup 2019-07-16 10:41:12 -07:00

README.md

cascading-picklists-extension

This extension can be found in the Azure DevOps Marketplace

Cascading Picklists

This extension uses the ms.vss-work-web.work-item-form contribution point that enables you to build a cascading picklist on the work item form. Cascading picklists are made up of two seperate fields. The parent field and a child field. The parent picklist will contain a list of values, that when a value is selected, will display the values in the child list.

image

Create a picklist

First, create a picklist of parent values. Second, create a picklist of child values. This child picklist will contain all possible values. We will configure how those values get displayed in the extension configuration.

image

Configure

Once both picklists have been created and configured, you can configure what child picklist values will be displayed. You do this by going to the "Cascading Lists" Hub in project settings. From here, configure the value for the parent picklist, so that when selected, the child values will be displayed.

image

Tips

  1. You must know the refname of the custom picklist fields. You can use List Fields REST API if you need help finding the value.

  2. The values setup in the picklist and the values in the configuration must be an exact match. There is not validation to check or correct spelling mistakes.

Get started with Extensions

Building and testing the extension requires following.

  1. Download and install nodejs
  2. webpack
  3. tfx cli
  4. TypeScript
npm i -g typescript tfx-cli webpack-cli

Install dev prerequisites

npm install

Create vsix to deploy on test environment

webpack && npm run package:dev:http

Run the extension server locally

Execute following commands in two separate Command Prompts

webpack --watch
npm run dev:http

Publish the dev extension to marketplace

Follow the instructions here

Package, publish, unpublish, and install VSTS extensions

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.