It's all about the answers!

Ask a question

How do I properly check work item type in the e-mail Message at Me template?


Marek Siekierski (817510) | asked Aug 07 '14, 5:22 p.m.
edited Aug 07 '14, 5:22 p.m.
Hello,

I have the following in my message at me email template, and it doesn't throw any syntax errors. How do I properly check against the work item type?

<tr>
  <td>#set ($v = ${workItem.type}) #if ($v.toString().equalsIgnoreCase("Defect")) Test #end</td>
</tr>

I can't find any documentation on this.

Accepted answer


permanent link
sam detweiler (12.5k6195201) | answered Aug 07 '14, 5:40 p.m.
See https://jazz.net/wiki/bin/view/Main/EmailTemplates#Variable_Types

you can of course echo the results to see what it is.. using the test mode against specific workitems

#{v}
Marek Siekierski selected this answer as the correct answer

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.