This code snippet adds a link to the specified transition in the email content of the email sent by the Email issue post-function
<% import com.atlassian.sal.api.ApplicationProperties import com.atlassian.sal.api.UrlMode ApplicationProperties props = ComponentAccessor.getOSGiComponentInstanceOfType(ApplicationProperties.class); String baseUrl = props.getBaseUrl(UrlMode.ABSOLUTE); %> <a href='${baseUrl}/secure/CommentAssignIssue!default.jspa?action=<ID>&id=${issue.id}' target="_blank">Approve</a> |
Placeholder | Description | Example |
---|---|---|
| Transition ID |
|
The output is an HTML link to a transition on the current issue which you could use in the HTML body section of the Email issue post-function to add links to actions in the Email sent. For example, you can add a link to the “Approve” transition to approve the request directly from the email.