Send custom email post-function - send to project role


I would like to send an email as post-function to project role named "Portfolio Manager". The only problem is that the name of this role contains the space character " ". I do not want to rename this role. It seems that custom email script uses space as delimiter for addressing the roles/groups and so on...

How can I solve this problem? I tried role:'Portfolio Manager' and 'role: Portfolio Manager' but I was unsuccessful.

See the screenshot below.

image2015-4-29 9:18:36.png


1 answer

1 accepted

Accepted Answer
3 votes


Please try putting the role in quotes, so use:

role:"Portfolio Manager"

I tested that and it works for me.

It works. Thanks a lot!

One of my JIRA clients just upgraded their SR to the latest free version (3.1.4) and sending of custom emails to Role names with spaces is not working anymore even though it has quotation marks on it.


I'm pretty sure I tested this on a 4.x version. I'd suggest they try using the latest one compatible with their JIRA instance (they may want to use an evaluation licence to try it).

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Sep 18, 2018 in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

23,196 views 2 7
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