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

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

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 Nov 29, 2018 in Marketplace Apps

How to set up an incident workflow from the VP of Engineering at Sentry

Hey Atlassian community, I help lead engineering at Sentry, an open-source error-tracking and monitoring tool that integrates with Jira. We started using Jira Software Cloud internally last year, a...

1,439 views 0 8
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