Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

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?

Susan

0 votes



2 answers

Permanent link
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.

0 votes

Comments

Note: I converted the followup question into an actual question: https://jazz.net/forum/questions/93961


Permanent link
Hello,
please refer to https://jazz.net/library/article/1003/#validators
I will also find an example of script based validators here:
https://jazz.net/wiki/bin/view/Main/AttributeCustomization#Script_Based_Validation

then also use https://jazz.net/library/article/1003/#conditions
to implement dynamic required attribute (depending on state)

Hope it helps.
Eric.

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 6,125

Question asked: Nov 14 '12, 7:38 a.m.

Question was seen: 3,916 times

Last updated: Nov 16 '12, 8:08 a.m.

Confirmation Cancel Confirm