Our new Appfire Documentation Space is now live!

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

Code snippet to add a link to a workflow transition in the email

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

Placeholder

Description

Example

<ID>

Transition ID

11

Examples

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.

References