It's all about the answers!

Ask a question

Making Custom Attributes Manditory


Doug Weissman (642) | asked Apr 09 '08, 8:56 a.m.
JAZZ DEVELOPER
Is it possible to make custom attributes mandatory? If I create a custom attribute found in platform and I want to make this required in order save the workitem, how would I proceed?

One answer



permanent link
Marcel Bihr, Jazz Work Item team (1.4k) | answered Apr 10 '08, 2:45 a.m.
JAZZ DEVELOPER
Yes, this is possible. In the process specification you would configure
this like:
<team-configuration>
....
<behavior>
<role id="default">
<operation id="com.ibm.team.workitem.operation.workItemSave">
<preconditions>
<precondition id="com.ibm.team.workitem.advisor.requiredProperties"
name="Required Properties"
xmlns="http://com.ibm.team.workitem/requiredProperties">
<properties workItemTypeCategory=
"com.ibm.team.workitem.workItemType"> <-- type or category
<property id="your.attribute "/> <-- attribute id
</properties>
</precondition>
</preconditions>
....

Be aware that if you use an enumeration attribute, there is always a
value set (the default value) - requiring this attribute has thus no effect.

Regards
Marcel
Jazz Work Item team

bdweissm wrote:
Is it possible to make custom attributes mandatory? If I create a
custom attribute found in platform and I want to make this required
in order save the workitem, how would I proceed?

Your answer


Register or to post your answer.