Hello Team,
i am writing a custom email post function, need to know how can i add user's mail id (currentUser)who is performing the transition, in a from field.writing this
"currentUser.email
Email is not valid: currentUser.email"
i am getting the specified error.
Any help is appreciated.
Thanks and regards.
Hi Shaikh,
User currentUser = ComponentAccessor.getJiraAuthenticationContext().getLoggedInUser();
String email = user.getEmailAddress();
<input type="text" name="cannedScriptArgs_FIELD_FROM" value="$currentUser.getEmailAddress()" size="120"/>
Hello Bhushan,
please find the below screen
i want to add email address in the from Field of custom email via script runner plugin,but not able to add it .
I hope i am clear to you.
Thanks and regards,
Moiz.
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.