Uploaded image for project: 'Automation for Cloud'
  1. Automation for Cloud
  2. AUTO-1223

Add support for And conditional logic smart value for more than two conditions

    XMLWordPrintable

Details

    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    Description

      Issue Summary

      According to the article conditional-logic/#and ,it is currently possible to check for two conditions using the 'and' condition logic, however, it is not possible to check for more than two conditions. It is also not possible to nest the and condition as well.

      Steps to Reproduce

      1. Create an Automation rule to check for custom fields of a linked issue
      2. When we use the 'AND' conditional operator to check for two conditions, it works fine
        Example: 
        {{#issue.issuelinks}} {{#if(and( Issue.TEXT_A.equals("AAA") , Issue.TEXT_B.equals("BBB") ))}} YES {{Issue.TEXT_A}} {{Issue.TEXT_B}} YES {{/}} {{#if (not (equals (Issue.TEXT_A, "AAA")))}} OHHH {{Issue.TEXT_A}} {{Issue.TEXT_B}} OHH {{/}} {{/}}
      1. When we use the 'AND' conditional operator to check for more than two conditions, the condition is not successful
        Example: 
        {{#issue.issuelinks}} {{#if(and( Issue.TEXT_A.equals("AAA") , Issue.TEXT_B.equals("BBB"), Issue.TEXT_C.equals("CCC") ))}} YES {{Issue.TEXT_A}} {{Issue.TEXT_B}} YES {{/}} {{#if (not (equals (Issue.TEXT_A, "AAA")))}} OHHH {{Issue.TEXT_A}} {{Issue.TEXT_B}} OHH {{/}} {{/}}

      Expected Results

      The 'AND' conditional operator should work even if we check for more than two conditions as mentioned in the above example.

      (or)

      There should be a way to nest the 'AND'/'OR' operator to check for more than three conditions.

      Actual Results

      When we use the 'AND' conditional operator to check for more than two conditions, the condition is not successful 

      Workaround

      Currently, there is no known workaround for this behavior. A workaround will be added here when available

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              9c3330e8be50 Rohit Sreedharala
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: