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

LookUpIssues list does not support using filters (like fields, vars , etc) in Automation Smart Value

XMLWordPrintable

    • 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.

      Issue Summary

      LookUpIssues list does not support using filters (like fields, vars , etc) inside IF condition operation (Like Equals)

      Steps to Reproduce

      • Setup a LookupIssues component to fetch work items like below:
      • Add a log action component and use the lookupIssues smart value output like below:
      {{#lookupIssues}}{{#if(equals(summary, triggerissue.customfield_21007))}}{{customfield_19916}}{{/}}{{/}} 

      Expected Results

      Using above mentioned smart value operation should iterate through the lookupIssues work items extracted from previous step and then for each work item, extract summary field data and compare it with the data in the another smart value like "triggerissue.customfield_21007" and if there is a successful match, extract the corresponding data in another custom field like "customfield_19916".

      Actual Results

      The comparison operation does not work as lookupIssues currently does not support using filters like "triggerissue.customfield_21007" or a variable smart value and it does not return anything.

      Workaround

      Use hard coded value like below if possible in the comparison operation:

      {{#lookupIssues}}{{#if(equals(summary, "Any hard coded value you want to compare"))}}{{customfield_19916}}{{/}}{{/}} 

              Unassigned Unassigned
              bcf2024051e5 Rahul Goel
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: