Our new Appfire Documentation Space is now live!

Take a look here! If you have any questions please email support@appfire.com

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Current »

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

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

  • No labels