Versions Compared

Key

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

Abstract

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

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>

Placeholders

Placeholder

Description

Example

<ID>

Transition ID

11

Examples

The output of this 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.

References

Filter by label (Content by label)
showLabelsfalse
showSpacefalse
cqllabel = "jmwe-groovy" and type = "page" and space = "JMWE"