Currently working on an automation where I am trying to work with conditional logic on custom fields. The conditional logic works when ever I use system fields.
For example - {{#=}} {{#issue.subtasks}} {{#if(equals(issuetype.name,"Approval"))}} {{fields.customfield_xxxxx}} + {{fields.customfield_xxxxx}} + {{/}} {{/}} 0 {{/}}
However, when I try to use the same logic on customfields, it doesn't work
Example - {{#issue.subtasks}} {{#if(equals(fields.customfield_xxxxx,"String"))}} {{fields.customfield_xxxxx}} {{/}} {{/}}
Please do let me know your thoughts