How to enforce work item one parameter to depend on another parameter?
I am creating or changing a work item and like to enforce one parameter change value to another parameter.
Example 1: I am changing parameter "Planed For" and like to enforce to change "Owner" parameter.
Also, would it also be possible to populate the choice of owner based on "Planed For:" parameter?
Example 2: I am changing the Status parameter from Development to Testing and like to force to change the Owner parameter.
Also, how to make work item parameters a mandatory parameter?
Thanks
Accepted answer
Interesting, I forgot the Precondition Implied Attributes that does a little bit based on state change and changes of the category that force team area changes.
One other answer
Calculated values could theoretically be used. The links from https://jazz.net/forum/questions/260479/how-to-auto-fill-work-item-parameters all apply. Note that
- The calculated value interferes with manual selection that means it has to return the current value if the value must not change
- The JavaScript API is limited in the attribute types supported and for complex types such as owner, you have to use UUID's
- All this stuff has performance implications