It's all about the answers!

Ask a question

Are custom attributes supported when modifying the work item email templates in RTC 4.x?

Michael Walker (99215201157) | asked Jan 07 '14, 4:46 p.m.
When looking at the documentation for customizing the Work Item Email Template I didn't see any mention of custom attributes being supported or no.  One of our customers wants a couple custom attribute values to appear in the subject heading.

Is this possible?

sam detweiler commented Jan 07 '14, 6:02 p.m. | edited Jan 07 '14, 7:01 p.m.


Accepted answer

permanent link
sam detweiler (12.5k6195201) | answered Jan 07 '14, 6:10 p.m.
 yes, you have to use the ID's of the custom attributes  

It is possible to acquire the values of custom attributes using the  ${workItem.get(...)} . Unless the attribute type is one of the specified supported types, the return type will always be a text type. For instance, the value returned for an attribute with an enumeration type will be the label and of type Text. Similarly an attribute of type Enumeration List can be accessed but the returning value will be be a comma separated string.
Michael Walker selected this answer as the correct answer

Michael Walker commented Jan 07 '14, 6:59 p.m.

Thanks...I only looked in the product documentation.  Should've looked at the articles also.

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.