Email notification - custom fields

Added by Gabor Balazs over 5 years ago

Hi,
Please help me about email notification. My _issue.html.erb content is the following:

<li> <b> <%=l(:field_description)%> </b>: <%=h issue.description >
<li> <b> <
=l(:field_status)%> </b>: <%=h issue.status ></li>
<li> <b> <
=l(:field_start_date)%> </b>: <%=h issue.start_date ></li>
<li> <b> <
=l(:field_priority)%> </b>: <%=h issue.priority ></li>
<
issue.custom_field_values.each do |c| >
<li> <b> <
=h c.custom_field.name > </b>: <=h show_value(c) ></li>
<
end %>

How can I add only concrete custom fields(not all of them) into the email notification ? Now I get notification with every custom field, but I would like to control based on the custom field ID. So if one of the ID is 22, how should look the code?

Thanks