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

Comparing two multi-line fields via the "Work item fields condition" can lead to false negatives

XMLWordPrintable

    • Minor

      Issue Summary

      When using a "Work fields condition" component, and comparing two fields such as "Multi line 1" and "Multi line 2" - the fields will not always be equal, even when they contain the same content. Smart value conversion and .trim() for smart value comparison is needed to come back as showing equal in all situations. 

      Steps to Reproduce

      1. Populate two different multi-line fields with the same text
      2. Use a work fields condition to compare whether these fields are equal, it will fail regardless in some cases. 

      Expected Results

      Comparing two multi-line fields should bring back accurate results as to whether the fields are equal. 

      Actual Results

      Two multi-line fields with the exact same text will not always equal each other - this may happen more often with multiple lines with line breaks in-between or other factors involved, but can be replicated.  

      Workaround

      Utilize smart value compare conditionals instead, example:

      {{triggerIssue.customfield_11111.trim()}} 

      EQUALS

      {{triggerIssue.customfield_22222.trim()}} 

              Unassigned Unassigned
              20de5542a620 Steven Hansen
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: