Dependent enumeration, prevent invalid values after save?
I have created a dependent enumeration using attribute customization, value sets, dependencies etc.
Everything is working as expected, dependent enum drop-down is populated only with values that are valid for the source attribute.
However, if after I save my Work Item, I choose a different value for the Source attribute, I am able to save the work item even if the dependent enumeration is not valid for the new value. There is a little red X to the left of the field, and only the new valid values will appear in the drop-down for the dependent field, but I can still save bad data.
Am I missing a flag or option somewhere, or is this a bug?
Accepted answer
"Attribute Validation" Precondition on Work Item Save Operation should be used.
The precondition "Attribute Validation" is defined as :
"Verifies that a work item can only be saved if all attribute values are valid."
and is reached on Eclipse Client from :
Open PA in Eclipse Client > Process Configuration Tab > Team Configuration > Operation Behavior > Work Items Operation > Save Work Item (Server) > Pick a Role this should apply to > Under Preconditions Section > Select Add to find Attribute Validation and add it
hope it helps.
The precondition "Attribute Validation" is defined as :
"Verifies that a work item can only be saved if all attribute values are valid."
and is reached on Eclipse Client from :
Open PA in Eclipse Client > Process Configuration Tab > Team Configuration > Operation Behavior > Work Items Operation > Save Work Item (Server) > Pick a Role this should apply to > Under Preconditions Section > Select Add to find Attribute Validation and add it
hope it helps.
Comments
sam detweiler
Sep 09 '14, 3:25 p.m.Michelle Stein
Sep 09 '14, 3:28 p.m.sam detweiler
Sep 09 '14, 3:47 p.m.Michelle Stein
Sep 09 '14, 3:51 p.m.