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
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,420 views 15 19
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