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?
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 %>
Hey Atlassian community, I am a PM on the Bitbucket Cloud team and I am excited to share that we just released an improvement to the Jira Software and Bitbucket Cloud integration. With the newly im...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs