Use case
In the following use case we show an approach to add a link to a text in the body of an email generated from the Send email post function.
⚒️ Configuration
Add the Send email post function to the transition of your choice.
Email content
Subject
Enter a plain text and optionally use Field codes for the subject of your email.
Email format
Choose HTML
Body
Enter the following expression.
Bash
<a href="%{system.baseUrl}/browse/%{issue.key}">%{issue.key}</a>
The previous expression can be modified to add a hyperlink to the current issue to any text. Simply replace the text between the tags with the text of your choice as in the expression below and it will be displayed appropriately in the email.
Bash
<a href="%{system.baseUrl}/browse/%{issue.key}">Custom text</a>