Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This code snippet adds a link to the specified transition in the email content of the email sent by the Email issue post-function

Logic

Snippet

...

Code Block
<% 
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>

...

Examples

The output of this a 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 action in the Email sent. For example, to add the link to the “Approve” transition of the issue key to approve the request from the email you should add the template to the HTML body.

...

...