'How can I configure work items to require parent items
In my organization we need to configure work items to require the field callled parent, also I want to know if it´s possible send a warning for all the work items previously created to be fixed by the assigned people.
I expect when someone will try to create a work item would be necessary add a parent item to complete the creation and I hope update the previously work items quickly or in an automation way.
Solution 1:[1]
Please try this extension : Work Item Link Validation.
Once the extension has been installed, it needs to be added to the work item types that you want to validate the links of.
This is done by adding a "custom control" to the work item form.
And then simply choosing to add the "Work Item Link Validation" control
There is some mandatory configuration that is then required
Configuration
Configuration ---------- Description
Work item states ------Comma delimited list of work item states for which link validation occurs. When the work item is not in one of these states, then validation does not happen. eg. To Do, In Progress, Done. These values are case insensitive
Link types -------------Comma delimited list of link types that are required. Supported values are Parent and Child These values are case insensitive
Child link count ------If a link type of Child is configure, how many child links are expected? If you simply provide a numeric value then the validator will pass only if there are exactly the specified number of child links. Simple single operator expressions are also allowed, eg. "> 1", ">= 1" which means you can test the child link count in a more sophisticated manner. The following operators are currently supported: > >= < <= != ==
For more info, you can refer to : Work Item Link Validation.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Kangcheng Jin-MSFT |