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

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?

0 votes



One answer

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

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: Apr 09 '08, 8:56 a.m.

Question was seen: 4,454 times

Last updated: Apr 09 '08, 8:56 a.m.

Confirmation Cancel Confirm