While constricting an automated email, pertaining to an Epic, i am using the following to list all the sub tasks in the Epic to be part of the email being sent:
{{#subtasks}}
<a href={{url}}>{{key}}</a> - {{summary}} - {{url}} - {{assignee.displayName}}
{{/}}
this is working well, and the email include all of the subtask in a list.
now, what I like to do is to only add sub tasks which has a certain value as part of the sub task description.
have tried things like:
{{#subtasks}}
{{#if {{summary}}.contains("text")}}
<a href={{url}}>{{key}}</a> - {{summary}} - {{url}} - {{assignee.displayName}}
{{/}}
{{/}}
but that does not work.
any ideas?