I have this code in a scriptrunner validator:
let TotPoints = 0;
if (issue.customfield_11667 != null) {
let TotPoints = TotPoints + issue.customfield_11667;
};
But when I use it, I get this error:
Jira expression failed to parse: line 4, column 1: let, IDENTIFIER, return, throw, !, -, typeof, (, null, true, false, NUMBER, STRING, TEMPLATE_LITERAL, new, [, {, try or if expected, } encountered.
What am I doing wrong?