It's all about the answers!

Ask a question

Can I set operational behaviors that take the value of the attributes into consideration?

Susan Hanson (1.6k2201194) | asked Nov 14 '12, 7:38 a.m.
I have 2 fields that are enumerations.  One is a Drop-Down that is a Yes/No/Not assessed, and one is a "Passed/Failed".  "Not assessed" is the Unassigned value for the first one, and it is a required field prior to moving the work item into "Ready".

I have been asked to make it so that if the value of the 1st drop-down says "Yes", then the value in the 2nd attribute must be "Passed" before the work item can move into "Ready" status.

I can't find a way to do this just in the Operational Behaviors (that is, without writing an advisor/server-side plugin).  Is this possible?


2 answers

permanent link
sam detweiler (12.5k6195201) | answered Nov 14 '12, 6:00 p.m.
You should be able to use the Dynamic Required Attributes precondition

here you need to write little Scriptlets that return true or false.  and attach them to the fields you want managed.

Geoffrey Clemm commented Nov 16 '12, 12:29 a.m.

Note: I converted the followup question into an actual question:

permanent link
Eric Jodet (6.3k5111120) | answered Nov 16 '12, 8:08 a.m.
please refer to
I will also find an example of script based validators here:

then also use
to implement dynamic required attribute (depending on state)

Hope it helps.

Your answer

Register or to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.