I'm trying to use variables to associate numercial values to values in other fields. I have four variables. Reach, Urgency, Impact, and Executive Importance. Each of those fields has selections such as "High", "Medium", "Low". I want to associate numerical values to those selections for each of the 4 fields and then apply a summation to get a total score.
I've tried using code like this in the smart value section of creating a variable , but I'm getting an error. Here's an example of trying to apply this for the reach variable (customfield_10060)
Name: reachValue
SmartValue:
{{#=}}
{{#if(equals(issue.customfield_10060, "Very High"))}}13
{{else}}{{#if(equals(issue.customfield_10060, "High"))}}8
{{else}}{{#if(equals(issue.customfield_10060, "Medium"))}}5
{{else}}{{#if(equals(issue.customfield_10060, "Low"))}}3
{{else}}{{#if(equals(issue.customfield_10060, "Very Low"))}}1
{{else}}0{{/}}{{/}}{{/}}{{/}}{{/}}
{{/}}
Any ideas what would make this work?