How can I make one attribute mandatory if another attribute is set to a certain value?
Accepted answer
Two options:
- An attribute customization condition and the required attribute for condition precondition/advisor
- A custom advisor
I would suggest option 1 go here:
Comments
Thank you Ralph, I looked into the articles about option 1. This is what I found for script-based condition: condition is not associated with any particular attribute and there is no
attributeId
argument. I'm not seeing a way to get my desired approach here, to get the value of Promote Status and then based on the value to determine the necessarity of Promote Date.
Am I looking into the wrong direction here ? Could you please elaborate on option 1 here ? Your help would be really appreciated.
! and 2 are related. " is the more in depth description.
From https://jazz.net/wiki/bin/view/Main/AttributeCustomization#Conditions :
Whenever the user saves a work item, all conditions will be evaluated. If a condition is met any associated attributes will be required.
I am pretty sure an attribute customization condition together with the operational behavior required attribute for condition is the simplest approach.