Hello!
I'm using the automation functionality and I tried to use the "Create value" action to save a variable and compare it with a number but it does not work.
Here is the smart value in the variable TotalComplexity:
{{#=}} {{#if (issue.Deal type.isEmpty)}} 0 {{/}} {{#if(equals(issue.Deal type.value,"Private offering, budgettary RFI"))}} 1 {{/}} {{#if(equals(issue.Deal type.value,"RFP (private tender)"))}} 2 {{/}} + {{#if(equals(issue.RTI composition.value,"No RTI"))}} 1 {{/}} + 0 {{/}}
And here is the comparison code I've written:
{{#if ( {{TotalComplexity}} >= 1 )}} HIGH {{/}}
What am I doing wrong?
Thank you,
Martina