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

0 votes
Accepted answer

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:




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
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

1,097 views 4 9
Read article

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