Smart values are not working as expected

XMLWordPrintable

    • Severity 3 - Minor

      Issue Summary

      Smart values are not working as expected

      Steps to Reproduce

      1. Create a custom field of any type, say Select List (single choice), and add it to a screen of a JSM project. Add options Yes and No to this field.
      2. Create another field of Assets objects type and add it to a screen.
      3. Create an issue and add values in the fields.
        • Select No in the first field.
        • Select any object in the second field.
      4. Create an Automation rule to print the values of the above fields.
      5. First Log action should contain {{not(issue.customfield_XXXXX.value.equals("Yes")}} Here, XXXXX represents the ID of the first field.
      6. The second Log action should contain {{issue.customfield_XXXXX.Name.equals("<object_name>")}} Here, XXXXX represents the ID of the second field and <object_name> is the name of the Object selected in the second field.
      7. Add another Log action with smart value {{and(not(issue.customfield_XXXXX.value.equals("Yes")),issue.customfield_XXXXX.Name.equals("<object_name>"))}}
      8. Run the rule.

      Expected Results

      All three values should be true.

      Actual Results

      The first two values are true while the last value is false:

      Workaround

      Create a rule with separate IF conditions to get the desired output.

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

              Created:
              Updated:
              Resolved: