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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published Thursday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

254 views 0 6
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