Script Fail

Hi, is there a way to capture if the script fail and send a email to the user?

Like the error below:

2013-01-15 15:57:52,398 http-8080-3 ERROR 957x311891x1 uy5cz0 /secure/CommentAssignIssue.jspa [onresolve.jira.groovy.GroovyFunctionPlugin] Error executing post-function

javax.script.ScriptException: javax.script.ScriptException: java.sql.SQLException: Network error IOException: Connection refused

2 answers

1 accepted

This widget could not be displayed.

Wrap stuff in a try/catch block... you can do what you want in the catch block.

Doesn't sound like suitable content for an end user though... the person that wrote the script should add exception-handling appropriate to what the exceptional case is...

This widget could not be displayed.

Is this case, I don t have have anything to do, because the error is a connecting with another tool we use, I will use the try catch in the connectiong, thanks.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Aug 22, 2018 in Marketplace Apps

How a Marketplace app tech team is achieving gender diversity

Hello! My name is Genevieve Blanch, and I'm the Marketing Manager at RefinedWiki, creators of apps to give teams the tools to customize Atlassian platforms. Currently, 44% of the tech team at Re...

509 views 3 18
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