Conditional smart value doesn't work with select list field values

XMLWordPrintable

    • Minor
    • Jira Software, Jira Service Management, Jira Work Management, Jira Product Discovery

      Issue Summary

      When attempting to use the conditional logic .equals with a dropdown field, it's not possible to match it.

      Steps to Reproduce

      1. Say you have a dropdown field customfield_10087, and you select "Option 2" for it.
      2. Try to log an action in an automation using:
         {{if(customfield_10087.equals("Option 2"), "true", "false")}} 

        This should work to match the value of the field: if the field is "Option 2," then "True." Else, "false."

      Expected Results

      If the field value is actually "Option 2," it should return true.

      Actual Results

      The smart value always returns false. It's not possible to match the field value to the smart value. Even using the field value ID does not work.

      This works for text and number fields, but not for dropdowns.

      Workaround

      Create a variable in the automation to pass the dropdown field value as a string, and then use the created variable in the conditional smart value.

            Assignee:
            Unassigned
            Reporter:
            Renata Dornelas (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: