Problem in Sending a custom email using Script Runner plugin

Hi,

I'm new to Script Runner plugin.

The problem we are facing is, we have added the script to send a custom email which we got in the below link.

http://stackoverflow.com/questions/15272864/jira-for-bug-tracking-and-customer-support

I'm getting exception when running the script. Please help me out in resolving the exception.

Thanks and Regards,

Madhanaa S R

2 answers

Hey,

even if I can't help you others might... but I doubt that they will be able to help if you don't provide details about the exception (log excerpt)

Cheers

Christian

as @Chrishtian told without log, no one will help you

have you gone through the following doc

https://jamieechlin.atlassian.net/wiki/display/GRV/Built-In+Scripts#Built-InScripts-Sendacustomemail

Yes. I have gone through the document. We actually want to send emails to external users. So we went for the script in the link mentioned above.

We need the exception, not the task...

javax.script.ScriptException: javax.script.ScriptException: groovy.lang.MissingPropertyException: No such property: issue for class: Script31
at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:117)
at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:216)
at com.onresolve.jira.groovy.GroovyRunner.runFile(GroovyRunner.java:110)
at com.onresolve.jira.groovy.GroovyRunner.run(GroovyRunner.java:61)
at com.onresolve.jira.groovy.GroovyRunner.doExecute(GroovyRunner.java:244)
at webwork.action.ActionSupport.execute(ActionSupport.java:165).....

This is in the code you are providing - can you post a screenshot of the whole configuration page

Ok. Is there any way to get the issue key when an issue is created? If so please share me the code..

I'm getting error when we use issue.getKey(). And the error is

javax.script.ScriptException: javax.script.ScriptException: groovy.lang.MissingPropertyException: No such property: issue for class

The problem is I don't know where you are using this, which is why I'm requesting the screenshot.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Sunday in Agility

You asked for it, so we delivered: images on issues have arrived

A picture tells a thousand words. And agility boards have just released their latest feature: cover images on issues – so now your board can tell a story at first glance. Upload attachmen...

219 views 2 11
Read article

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