would anybody happen to have an example of emailing the output of a groovy script in script runner?
I would like to email the result of this script to a user. I can't find a good example in the documentation.
def componentManager = ComponentManager.instance
It's actually very simple to add something to jira's email queue. The sample code you need is here: https://bitbucket.org/jamieechlin/scriptrunner-public/src/be2bcb817137/src/main/resources/com/onresolve/jira/groovy/canned/workflow/postfunctions/SendCustomEmail.groovy#cl-241
I could pull out the relevant bits but I think it's simple enough. Actually I seem to have done that before here: https://answers.atlassian.com/questions/15723/how-to-send-email-from-plugin?page=1#34203
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!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
We're bringing product updates and pro tips on teamwork to ten cities around the world.Save your spot