RTC work items: Is it possible to make an attribute required when an specific resolution code for an action of the workflow is selected?
Lets say I have a RTC project, with a work item type "Defect".
Lets say also I want to make some of the attributes of the "Defect" WI required when a particular Resolution Code (RC) is selected for an action of the Defect workflow.
As an example: when you go from the "Closed" state to the "Validation Complete" state, the available RCs for selection are: "Won't Fix" and "Fixed".
a) If the RC selected is "Won't Fix" , then attributes "A" and "B" become mandatory.
b) If the RC selected is "Fixed" , then attributes "C" and "D" become mandatory.
Is that possible by using the Operation Behavior functionality that comes with Team Configuration of the Process Configuration? - or - Do I need an script for that?
Many thanks in advance.
Vicky
Lets say also I want to make some of the attributes of the "Defect" WI required when a particular Resolution Code (RC) is selected for an action of the Defect workflow.
As an example: when you go from the "Closed" state to the "Validation Complete" state, the available RCs for selection are: "Won't Fix" and "Fixed".
a) If the RC selected is "Won't Fix" , then attributes "A" and "B" become mandatory.
b) If the RC selected is "Fixed" , then attributes "C" and "D" become mandatory.
Is that possible by using the Operation Behavior functionality that comes with Team Configuration of the Process Configuration? - or - Do I need an script for that?
Many thanks in advance.
Vicky
One answer
the out of the box required field extension is on the State not the reason code.
one could write a server side plugin to get to the reason code level.
one could write a server side plugin to get to the reason code level.
Comments
When you say "the reason code", do you mean the "resolution code"?
And what do you mean by "a server side plugin"? I am not familiar with that kind of development.
Many thanks!
Vicky
yes, resolution code.
many of the workitem attributes are not accessible from javascript extensions.
you do have full control from server side plugins
see https://jazz.net/library/article/1000