> For the complete documentation index, see [llms.txt](https://docs.meta-inf.hu/email-this-issue/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.meta-inf.hu/email-this-issue/faq/email-this-issue-for-jira-cloud-how-to-add-custom-macro-to-email-template.md).

# How-to add custom macro to email Template?

1\. Open an email template (***Email this Issue settings / Outgoing emails / Templates / Your template / Edit***)

2\. Go to the "***HTML Template***" editor.

![](/files/-Mf8I46uOYGP0pJzpo7A)

3\. Click on the "***Open raw HTML editor***" and insert your Velocity code at the top of the HTML code between `<!--` and `-->`&#x20;

4\. Ckick **Apply** and **Save**.

![](/files/-Mf8I46xXRFpOYr1Np2q)

{% hint style="success" %}
Result: If the code is okay, you can use the macro in your email template.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.meta-inf.hu/email-this-issue/faq/email-this-issue-for-jira-cloud-how-to-add-custom-macro-to-email-template.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
