I want to create an automation to populate a numeric Importance field based on the index of the dropdown fields Severity and Frequency like so:
Importance = Severity * Frequency
where the Severity values "Minor", "Major" and "Critical" are converted into their index in the dropdown (that is, Minor = 1, Major = 2...).
My automation Edit Field step looks like this:
{{#=}}{{issue.Severity}} * {{issue.Frequency}}{{/}}
but these are obviously translated into their value texts, not their indices.
Is there a way for me to get the index of a dropdown value? If not, how do I set variables based on dropdown values and use them to do the math?