When try to send the filtered results and send them via "subscription Emails" Results are sending as in email body (not as a CSV/Excel attachment in the mail) I need to send that as csv attachment in the email I need to do this using a groovy script. Can anyone please help me on that
My approach is like below. If anyone knows a better approach please let me also.
Hello @Udara Manupriya
From my limited understanding, sending Jira filter results as a CSV attachment via a Groovy script involves two key steps: generating the CSV from JQL and attaching it to an email. To generate the CSV, you can use Jira’s API to query results and format them into a CSV file. Then, use a Groovy mail library like javax.mail to send the email with the CSV file attached.
If you encounter challenges with script implementation, Atlassian’s ScriptRunner documentation offers examples that can help. For advanced assistance or validation of your script, you can also reach out to Atlassian support at https://support.atlassian.com/contact/#/.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have created a groovy script , JQL results are successfully exported as csv but when I try to send emails, the imported below libraries are not resolved
import com.atlassian.mail.Email
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.