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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.