It's all about the answers!

Ask a question

Is there a way to make the visible enumerations in a custom field depend on the selection from another custom field?


Lee Couch (174) | asked Apr 21 '22, 9:52 a.m.
In CCM/EWM

 We have two custom fields added to a Work Item.  We would like the selection from field #1 to decide the visible options in Field #2.


Example Field #1 options Car, Truck, Van

If Field #1 = Car then Field #2 Options = Red, Green, Blue
If Field #1 = Truck Then Field #2 Options = Brown, White, Pink
If Field #1 = Van Then Field #2 Options = Gray

Accepted answer


permanent link
Ralph Schoon (63.5k33646) | answered Apr 21 '22, 10:27 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
edited Apr 21 '22, 10:27 a.m.

 This is called a dependent enumeration

https://www.ibm.com/docs/en/elm/7.0.3?topic=sets-configuring-dependent-enumeration-value-set


Note, that this only limits the choices to choose from, it does not impact values that are already set. 
So it  only allows to chose the values in the dependent enumeration, it would not remove a value that is already set and no longer matches the valid choices if you change the attribute value it depends on.

Also note that this customization is attribute based and impacts all attributes with the same ID configured for all work item types in the project area.


Also see https://jazz.net/library/article/1093 as a more comprehensive set of descriptions for options.
A short overview is here: https://jazz.net/library/article/1003

Lee Couch selected this answer as the correct answer

Comments
Lee Couch commented Apr 22 '22, 4:47 p.m.

 Exactly what we needed.  

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.