Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Post-transition scriptrunner to send email with attachments stored on server, not ticket

Maria DePasquale
Contributor
February 5, 2024

Has anyone been able to generate scriptrunner code that fires from the workflow, post-transition to send an email with email attachments stored on a server and not on the ticket? I have a request to generate an email where I take the email address and recipient first name from the current ticket but I attach three generic documents stored somewhere on a server.  The same three docs would need to be emailed from multiple tickets over time so we wouldn't want to keep attaching the same three documents over and over on various tickets.  This is for a vendor set up process so only when we wanted to set up a new vendor would we fire the post-transition script to send the email with the three attachments.

This is for Jira DataCenter.

Any ideas/help would be much appreciated!

 

2 answers

0 votes
Ram Kumar Aravindakshan _Adaptavist_
Community Champion
February 6, 2024

Hi @Maria DePasquale

If you intend to share the same files over multiple tickets, I suggest putting the common attachments on a cloud or in a shared folder where there recipients of the email would be able to access and provide a link in the email being sent out.

Thank you and Kind regards,

Ram

 

0 votes
Clark Everson
Community Champion
February 5, 2024

Hi Maria,

This would usually require integration with the other tool and may need more than scriptrunner (more than likely does). You would need a tool (custom app most likely unless the server hosting it has an app, like aws has some apps) in Jira that can call those assets

However, there could be security concerns making these types of calls and then sending that data via email. Email itself isn't the most secure, so if those attachements contain anything secure and you aren't using a public instance of jira I would recommend against attempting this and instead send links to the server instead, as this would more than likely require additional authorization to see the images limiting security risks.

Best,

Clark

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
v9.11.3
TAGS
AUG Leaders

Atlassian Community Events