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

This widget could not be displayed.

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

This widget could not be displayed.

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...

What Christian said. And see https://jamieechlin.atlassian.net/wiki/display/GRV/Getting%20Help#GettingHelp-Supportrequests for exactly what you need to provide.

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
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

112 views 1 2
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