how to make enumeration type of attribute a mandatory field with pop up to select a value?
In v4.0.1, we can create a new enumeration type of attribute as mandatory. however, like how priority attribute works, even though it is marked as mandatory, because there is a default value set for the attribute such as Unassigned for Priority, when saving a new workitem, we can still save it even though Priority is set as default Unassigned.
What we expect is when saving a workitem and the custom field(enumeration type) would prompt the user to select a value, similar to how file against work when it is set as mandatory(a pop up prompts the user to select the project etc). Is that possible to achieve that? Thanks |
Accepted answer
Ralph Schoon (63.5k●3●36●46)
| answered Apr 23 '13, 4:26 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Hi Don,
you basically set the enumeration property Unassigned Literal to the default literal e.g. "Unassigned". Once you did that the Operational behavior considers the unassigned value as not being one of the values that are considered mandatory. The default for the Priority Enumeration for the unassigned literal was None and I changed it so unassigned like below and I was prevented to save. The same should apply to custom enumerations. Don Yang selected this answer as the correct answer
Comments
Don Yang
commented Apr 23 '13, 7:48 p.m.
Thank you very much for the answers.
Don Yang
commented Apr 23 '13, 8:38 p.m.
Sorry, I misunderstood your info. If Unassigned literal is not set, then I can save the workitem even though the enumeration is mandatory. If I set Unassigned literal, then I don't need to restart the server or logout the client, it will consider Unassigned as non-correct value and won't allow me to save the workitem.
|
One other answer
there is no prompting support for anything other than category. this is special code for that one attribute
|
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.