Sending email from JIRA to custom address field

Hi all,

I'm looking for a way to send an email with JJupin when certain issues are closed. The email address that the email is to go to is held in a custom text field "requesteremail," and the email body is contained in the issue description.

How do I reference these fields from within the sendEmail function?

1 answer

Hi,

You have an example here (for Blitz-Actions, but works with JJupin as well): http://confluence.kepler-rominfo.com/display/TR/Email+Issue+from+Blitz+Actions

You need to use the same routine, sendEmail() in your postfunction. Template need to be edited and placed in the templates directory; if you need HTML emails, use sendHtmlEmail()

Thanks for the response!

This email seems to be sent to people that are associated witht the project in JIRA (projectMembers(project);).

How can I reference my custom text field in the "string[] to =" section? Or any other issue field for that matter?

Thanks for the response!

This email seems to be sent to people that are associated witht the project in JIRA (projectMembers(project);).

How can I reference my custom text field in the "string[] to =" section? Or any other issue field for that matter?

You can find the different ways to access issue fields here: http://confluence.kepler-rominfo.com/display/SIL/Variable+Resolutionand then add them together in the array using http://confluence.kepler-rominfo.com/display/SIL/arrayAddElement

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,801 views 11 18
Join discussion

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot