Property 'currentUser' not found in custom email?


im getting the error message "Property 'currentUser' not found" in the create issue screen after i press the "Create Issue" button.

i added a post function "Send custom email" from the script runner plugin.

While the preview action in the editor sais everything is ok, the real execution of the script in the workflow shows the error "Propery 'currentUser' not found". But the issue is created succesfully.

I am accessing the currentUser in that way:

bla blubb ${currentUser.displayName} more text for the email


This is the order of the post functions

image2015-6-22 10:40:36.png

Where is my error?



2 answers

1 accepted

This widget could not be displayed.

Well, i can solve this by my self:

in script runner, the currentUser is not an object but a function.

So the correct syntax is:




This widget could not be displayed.

I'm a bit confused... I don't see currentUser as being available in the script binding there. I was going to suggest using:


Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted yesterday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

55 views 1 0
Join discussion

Atlassian User Groups

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!

Find my local user group

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

Groups near you