Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to include issue's URL in custom email post-script?

Ron January 22, 2018

New to GStringTemplateEngine. I have a post-script that will send an email on transition and would like to include the issue URL in the email. How can that be done? Thanks!

1 answer

Suggest an answer

Log in or Sign up to answer
0 votes
Michel Tremblay [Adaptavist] January 31, 2018

You can build your jira issue link with

import com.atlassian.jira.component.ComponentAccessor

def currentIssue = "TEST-1"

def
jiraBaseUrl = ComponentAccessor.getApplicationProperties().getString("jira.baseurl")
def issueLink = "${jiraBaseUrl}/browse/$currentIssue"

 From there you just need to create your html Link

TAGS
AUG Leaders

Atlassian Community Events