I want to set up a post function which sends out an email with an excel attachment.
I have 3 attachment in my issue and I only want to send out the latest excel sheet.
As a.isNew() is based on what is included in this transition, my attachments were added previously.
How could I send out the latest excel version?
This is the current code
import com.onresolve.scriptrunner.canned.jira.workflow.postfunctions.MailAttachment
{MailAttachment a -> a.isNew() && (a.filename.toLowerCase().endsWith('.xlsx') || a.filename.toLowerCase().endsWith('.xls'))}
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.