Hi, I am trying to design a custom script runner email as a post function. I need to include current user's name or last person's name who triggered this action.
How to do that in Script Runner Email body?
I have tried:
${currentUser.displayName} but it does not work in email
Please help
Hi Hermanshu,
even though its been almost three years ago I thought I'd reply anyway. I was searching for the same and found the following solution:
<% out << com.atlassian.jira.component.ComponentAccessor.getJiraAuthenticationContext().getLoggedInUser().getDisplayName()%>
Cheers, Manuel.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.