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
Community moderators have prevented the ability to post new answers.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.