Making Custom Attributes Manditory
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
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 |
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.