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

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
Community showcase
Published Nov 29, 2018 in Marketplace Apps

How to set up an incident workflow from the VP of Engineering at Sentry

Hey Atlassian community, I help lead engineering at Sentry, an open-source error-tracking and monitoring tool that integrates with Jira. We started using Jira Software Cloud internally last year, a...

1,308 views 0 8
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