# Email Issue > المصدر: https://appfire.atlassian.net/wiki/spaces/JMWE/pages/461767713/Email+Issue --- Open  Figure 1 - Email Issue post-function This post-function will send a notification email to specified recipients when the transition is triggered. You can create either plain text or HTML-formatted emails, and insert field values within those templates. See [Email templates](https://appfire.atlassian.net/wiki/spaces/JMWE/pages/461473022 "https://appfire.atlassian.net/wiki/spaces/JMWE/pages/461473022") for more information on creating emails using the different templates available. ## Configure the post-function 1. Follow the steps above to add a post-function to a Transition. 2. From the list of post-functions, select **Email Issue**. 3. Click **Add**. 4. The Email Issue page will open (Figure 1, right). Configure the post-function as needed, setting the options for the target issue, email template, email content, and additional options as necessary. See below for details on each of the configurations. 5. Click **Add**. Note that you need to publish the workflow for the new post-function to take effect. ## Email template In the Email template section, you configure which issue will be included in the email and the template to use. The HTML/text body of the message (see **Email content**, below) will appear inside the selected template. See [Email templates](https://appfire.atlassian.net/wiki/spaces/JMWE/pages/461473022 "https://appfire.atlassian.net/wiki/spaces/JMWE/pages/461473022") for more information on creating emails using the different templates available. - **Target issues** - **Which issue(s)** - Select the issue type. - **Current Issue** - The issue that is being transitioned and triggering the post-function. - **Issue/Subtask** - **Sub-tasks of the current issue** - Updates will be made to all sub-tasks of the current issue. - **Parent issue of the current sub-task** - Updates will be made only to the parent of the current issue (if any). - **Epic/Story** - **Issues that belong to the current Epic** - Updates will be made to all issues that belong to the current Epic. - **Epic of the current issue** - Updates will be made only to the Epic of the current issue (if any). - **Portfolio Parent/Child** - **Child issues of the current issue in the Portfolio hierarchy** - All child issues will be updated. - **Parent issue of the current issue in the Portfolio hierarchy** - Only the parent issue will be updated. - **Issue links** - **Issues linked to the current issue through any link type** - **Issues linked to the current issue through the following link type** - **JQL / Groovy** - **Issues returned by the following Groovy script** - **Issues returned by the following JQL search** - **Issue Link** - *Only available when **Which issue(s)**, above, is set to **Issues linked to the current issue through the following link type***. Select the required link type between the current issue and the issue to be updated. - **Groovy script** - *Only available when **Which issue(s)**, above, is set to **Issues returned by the following Groovy script**.* Enter a Groovy script that returns the ID values for the issue or issues to be updated. See [Customizing further with Groovy scripts](https://appfire.atlassian.net/wiki/spaces/JMWE/pages/461537291 "https://appfire.atlassian.net/wiki/spaces/JMWE/pages/461537291") for more information on Groovy scripting. - **JQL expression** - *Only available when **Which issue(s)**, above, is set to **Issues returned by the following JQL search**.* Enter a JQL expression that returns the ID values for the issue or issues to be updated. See [Using JQL in JMWE](https://appfire.atlassian.net/wiki/spaces/JMWE/pages/461963533 "https://appfire.atlassian.net/wiki/spaces/JMWE/pages/461963533") for more information on JQL. - **Pick a Template** - Select the email template to use. See [Email templates](https://appfire.atlassian.net/wiki/spaces/JMWE/pages/461473022 "https://appfire.atlassian.net/wiki/spaces/JMWE/pages/461473022") for more information. ## Email content Specify the subject and body of the email in this section. Click on the **Expected value** menu of the Groovy editor Help section for details on the expected value for the subject and the body. **Subject** Input the subject of the notification Email, including optional Groovy template markup. For example: `Issue <%=issue.key %> - <%= issue.summary %> has been resolved` `Immediate attention needed on <%=issue.key %>` **Text Body** Input the raw text version of the body of the notification email. This will be used for users who have opted to receive emails in text format (see [user preference settings](https://confluence.atlassian.com/adminjiraserver071/configuring-the-user-default-settings-802592314.html "https://confluence.atlassian.com/adminjiraserver071/configuring-the-user-default-settings-802592314.html")) or if you do not provide an HTML version below, and the user preference is set to receive emails in an HTML format. The text body version of the email supports Markup, and will insert issue values when the issue field is preceded by a **$** (e.g. `$issue.summary` will insert the issue summary). For example: `Hi, _Greetings from Innovalog!_ Issue *$issue.key - $issue.summary* has been resolved. Regards, $currentUser.displayName.` **Html Body** Input the HTML version of the body of the notification email. For example: `
Hi,
Issue $issue.key - $issue.summary has been resolved.
Regards,
$currentUser.displayName