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

Work Items E-mail templates: velocity template language substring

 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

0 votes



One answer

Permanent link
see https://jazz.net/forum/questions/99250/rtc-4-email-template-character-replace-problem-solved

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

3 votes

Comments

 Hi Sam,


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

Thanks!

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
× 12,019

Question asked: Sep 03 '14, 8:30 a.m.

Question was seen: 4,947 times

Last updated: Sep 03 '14, 4:13 p.m.

Confirmation Cancel Confirm