Trying to send custom email every 10 jobs which are closed

Ben Rao July 29, 2014

I am currently trying to setup a survey which is sent out after every 10th job is closed. I am using the script runner Groovy Custom email but cannot get the expression to work. I am trying to get it to send when the final digit of the Issue name I.E OPS-660 is a 0.

Any help would be kindly appreciated.

1 answer

1 accepted

0 votes
Answer accepted
JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 29, 2014

The condition would be:

issue.key.endsWith('0')

What have you tried?

Ben Rao July 29, 2014

Thank you! this wokrs perfectly and we had tried using $ for final character

Suggest an answer

Log in or Sign up to answer