workflow editor issue with emails.split

Hi,

As per this blog, http://blog.jetbrains.com/youtrack/2014/04/helpdeskers-support-multiple-customers-via-a-single-youtrack-thread/

We are trying to update the workflow jetbrains-youtrack-notifyMultipleUnregisteredUsers

But the additional code isn't accepted.

var reporterEmail = Last message related emails.split(
" ",preserveAllTokens).first
sendMail(reporterEmail, “Your subject”, “Your email body”)

The emails.split part fails in the editor. It's odd as the emails.split is used in the workflow higher up and it's ok, it's just when entering in new code.

Thanks in advance for any help.

Please sign in to leave a comment.