It's all about the answers!

Ask a question

How can I apply a Default Value type Enum to an Attribute


Erwin Kunz (94687086) | asked Jul 04 '13, 9:09 a.m.
edited Jul 04 '13, 9:38 a.m.
RTC 4.0.2

I would like to handle the default value of an enumeration per Workitem Type.
I tried using a Custom Attribute and a Build-In. With both I was not able

1) under Attribute Customization/Default Values - ADD - with Provider Enumeration List - Priority
2) Types and Attributes - Type Story - edit Priority

==> Default Value is not enabled !!

I tried the same with provider Multi-Line-HTML and was able to apply it to the Description

Any Idea what I missed

Accepted answer


permanent link
Indradri Basu (1.8k1514) | answered Jul 04 '13, 10:53 a.m.
To me it doesn't seem to be possible as the Default Literal is a property of the Enumeration and not of the attribute the enumeration is linked with.
Workaround is to create different enumerations for different workitem types.
You may want to create an enhancement request here:
https://jazz.net/jazz/web/projects/Rational Team Concert#action=com.ibm.team.workitem.newWorkItem&type=enhancement
Erwin Kunz selected this answer as the correct answer

2 other answers



permanent link
Indradri Basu (1.8k1514) | answered Jul 04 '13, 10:26 a.m.
From Configuration -> WorkItems -> Enumeration, select the Priority Enumeration and then Select a value in the Default Literal dropdown list (refer to the screen shot below)



Comments
Indradri Basu commented Jul 04 '13, 10:33 a.m.

ahh...I failed to notice you mentioned, per WI type. I will check and get back


permanent link
Sirisha t (1058) | answered Jun 06 '14, 12:59 a.m.
Is it possible to define a default value for Enumeration type?
I have used unassigned value for 'Priority' field and made it as mandatory field. But work item with unassigned priority is getting saved as it is set to default, I wanted to restrict the work item save for mandatory fields having 'unassigned' value. Can anyone please suggest me on this.

-Sirisha

Your answer


Register or 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.