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

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

0 votes


Accepted answer

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

2 votes

Comments

Thank you very much for the answers.
I actually tested the same before posting the questions. I shut down the server and restarted it and I now see the client rejects Save when custom enumeration is set as Unassigned, I don't know why priority still not working if it is set as Unassigned(I can save). I am wondering when we add precondition, do we need to restart the server or at least logout the client to make it work?(I do see it is effective immediately when I set file against as required attribute)

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

Permanent link
there is no prompting support for anything other than category.  this is special code for that one attribute

1 vote

Comments

Thank you very much for the info.

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
× 11,019
× 12

Question asked: Apr 23 '13, 3:41 a.m.

Question was seen: 7,579 times

Last updated: Apr 23 '13, 8:38 p.m.

Confirmation Cancel Confirm