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

Enumeration without a Default Literal?

Is it possible to have an enumeration that doesn't require a default literal?

I created an enumeration that's just Yes or No. I created a required attribute that uses a Radio Group with the enumeration. What I want to do is create a Condition where if Yes is selected then a second HTML attribute will be required as well.

The problem is I have to select either Yes or No as the default value. If Yes is the default and I create a new work item, I have to first select No, then Yes again to fulfill the Requiredness.

I would prefer that there's no default and I only have to select either Yes or No.

I'm using 3.0.1

0 votes



One answer

Permanent link
Regarding the default value on enum, what you can do is to define a 3rd value in your enumeration (e.g. "Not Assessed") and specify that this is the default but also the unassigned literal. In this way, if your attribute is mandatory, the behavior will not be affected, as selecting Not Assesses will mean no selection.

For the condition, you can do that in 3.0.1. You have to define a condition (script based). You can read more here:

https://jazz.net/library/article/537

Dive till the Validation section. Once there, pay attention to the dynamic required attributes.
Hope it helps.

--Claudia

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

Question asked: Jul 12 '11, 2:20 a.m.

Question was seen: 4,055 times

Last updated: Jul 12 '11, 2:20 a.m.

Confirmation Cancel Confirm