Hello, my goal is to send the issue-key in an e-mail when my warranty for my hardware expires?
Whats the syntax in the EMail template to send the key from the issue and how can i send custom fields?
Hello,
Write in email template
Your asset <% out << issue.key %> has no warranty.
Try something like this
Your asset <a href="http://jiraurl/browse/><% out << issue.key %>"><% out << issue.key %><a/> has no warranty.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Kindly change your code to
Your asset <a href="http://jiraurl/browse/<% out << issue.key %>"><% out << issue.key %></a> has no warranty.
And change jiraurl to your jira url
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I used a slightly different approach that some may find useful. I defined the URL for the link as such:
<%
def link = com.atlassian.jira.component.ComponentAccessor.getApplicationProperties().getString("jira.baseurl") + "/browse/" + issue.key
%>
and then referenced that variable in the email template as such:
<p>Please note that <a href="$link">$issue.key</a> has been canceled.</p>
Doing it this way allows easily moving the script between our dev/test/prod instances and always having the correct URL, and secondly, I find it cleaner to user $issue.key rather than <% out << issue.key %>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.