Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Jira script failure sending email

Alice Ferrari August 13, 2018

Hallo everyone,

Today I get this error constantly on my script:

2018-08-13 15:22:59,101 ERROR [workflow.ScriptWorkflowFunction]: Script function failed on issue: 'NUMBER OF ISSUE', actionId: 31, file: null
java.lang.NullPointerException
at com.atlassian.jira.issue.IssueImpl.getCustomFieldValue(IssueImpl.java:896)
at com.atlassian.jira.issue.Issue$getCustomFieldValue$11.call(Unknown Source)
at com.onresolve.scriptrunner.canned.jira.workflow.postfunctions.SendCustomEmail.constructMail(SendCustomEmail.groovy:418)
at com.onresolve.scriptrunner.canned.jira.workflow.postfunctions.SendCustomEmail$constructMail$1.callCurrent(Unknown Source)
at com.onresolve.scriptrunner.canned.jira.workflow.postfunctions.SendCustomEmail.constructMailWithConditionResult(SendCustomEmail.groovy:398)
at com.onresolve.scriptrunner.canned.jira.workflow.postfunctions.SendCustomEmail$constructMailWithConditionResult$0.callCurrent(Unknown Source)
at com.onresolve.scriptrunner.canned.jira.workflow.postfunctions.SendCustomEmail.doScript(SendCustomEmail.groovy:494)
Cancel

 

can anyone please help me?

Thank you so much

Alice

1 answer

0 votes
miikhy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 13, 2018

Hi Alice,

Seems like one of the custom fields you're retrieving for the email is returning a null value. You should make sure values are != null before sending the email :)

Hope this helps!

Cheers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events