It's all about the answers!

Ask a question

Defaulting the same enumeration/attribute based on work item type


Susan Hanson (1.6k2189193) | asked Aug 28 '12, 4:21 a.m.
We use the same attribute/enumeration across all work items.  We would like to have a different default value based on work item type.  For example, a "requirement" we want to default to a release of "Future" but a defect we want to default to the current release under development.  Note that we use a custom attribute and not the "Releases" on the Project Area configuration.  We can set the default in the Enumeration itself, but we cannot seem to find a way to set a different default based on the work item type, or even just within the editor itself.

Can someone help?
Susan

One answer



permanent link
Ralph Schoon (60.9k33643) | answered Aug 28 '12, 4:56 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
edited Aug 28 '12, 5:10 a.m.
Hi Susan,

the enumeration default is stored in the enumeration. Attribute customization is also the same for one attribute across all work item types. The one thing I could think of is to try using a scripted default, where you calculate the default value literal from the work item type.

See: https://jazz.net/wiki/bin/view/Main/AttributeCustomization#Using_scripts_for_attribute_cust

Comments
Susan Hanson commented Aug 28 '12, 4:59 a.m.

Do you have a pointer to information on scripted defaults? I'd like to try.


Ralph Schoon commented Aug 28 '12, 5:11 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

Added link to answer.

Your answer


Register or to post your answer.