On post condition - sending email - I'm getting a groovy exception and the mail is not sent

Hi,
Inside my open bug workflow, there's a aimple post condition, that if the TicketId or Case are not null, an email should be sent to a certain group of people.(condition - cfValues['TicketID'] != null || cfValues['Case'] != null)
This used to work in 4.4, after upgrade to 5.1 it is not working now.
I tried my script in Script runner and it worked. But while actually opening the bug with the relevant fields, I don't see it sent.

I've found this in the logs:
2012-12-13 23:11:48,089 http-8443-19 WARN tomeroz 1391x28695x1 1p15sw7 192.168.19.20 /secure/QuickCreateIssue.jspa [canned.workflow.postfunctions.SendCustomEmail] Could not handle field tier3@liveperson.com,
2012-12-13 23:11:48,090 http-8443-19 WARN tomeroz 1391x28695x1 1p15sw7 192.168.19.20 /secure/QuickCreateIssue.jspa [canned.workflow.postfunctions.SendCustomEmail] Could not handle field tomeroz@liveperson.com
2012-12-13 23:11:48,097 http-8443-19 ERROR tomeroz 1391x28695x1 1p15sw7 192.168.19.20 /secure/QuickCreateIssue.jspa [groovy.canned.utils.ConditionUtils] javax.script.ScriptException: groovy.lang.MissingPropertyException: No such property: groups for class: com.atlassian.crowd.embedded.ofbiz.OfBizUser

Plesae assist.

Thanks a lot, Tomer.

3 answers

0 vote

Can you let us know what the value of "to fields" is, ie what field(s) provide the addresses, and the type of those fields.

The fields are simple email addresses, it used to be group:tier3, I've changed it to tier3@companyname.com and added my personal - tomeroz@companyname.com for testing

so its:
tier3@companyname.com, tomeroz@companyname.com

Type is public static String FIELD_TO_ADDRESSES = "FIELD_TO_ADDRESSES"

Thanks, Tomer.

What version of the plugin are you using, I don't see any ".groups" in tip.

groovyrunner 2.0.11

Looks like the latest.

Thanks, Tomer.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Jul 10, 2018 in Marketplace Apps

If you’re an Atlassian app developer, you’ll want to know about Atlas Camp!

This September 6-7, hundreds of Atlassian App developers will flock to Barcelona Spain to build skills, discover product roadmaps, meet face-to-face with the Atlassian team, and learn how to extend t...

177 views 0 4
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