It's all about the answers!

Ask a question

Work Items E-mail templates: velocity template language substring


Milan Krivic (98013176143) | asked Sep 03 '14, 8:30 a.m.
edited Sep 03 '14, 8:31 a.m.
 Hi,

I 'm currently doing some configuration stuff in Work Items E-mail template settings for Project Area.
I need to change wi summary mail notification, that is, I need to display first thee characters of project area where work item change happened. 
I managed to get project name in wi summary by setting ${workItem.projectArea}, but now I need somehow get first tree characters from this variable.

Does anyone has idea how to do it?

I googled VTL syntax and tried with ${workItem.projectArea.substring(0,3)} but it doesn't work :(

Thanks,
Milan

One answer



permanent link
sam detweiler (12.5k6195201) | answered Sep 03 '14, 9:03 a.m.
see https://jazz.net/forum/questions/99250/rtc-4-email-template-character-replace-problem-solved

you get the string representation, then substring etc works..


Comments
Milan Krivic commented Sep 03 '14, 9:50 a.m. | edited Sep 03 '14, 4:13 p.m.

 Hi Sam,


Great! I did it with help of your link you gave me.

Thanks!

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.