Uploaded image for project: 'Jira Service Management Cloud'
  1. Jira Service Management Cloud
  2. JSDCLOUD-11345

Insights Automation: List functions like size, max etc. do not work when used for attributes returned by "Lookup objects" action

    XMLWordPrintable

Details

    • 0
    • 5
    • 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

      When using "Lookup objects" action in an automation rule, the list functions like size, max do not work when used for attributes of the objects returned by the action

      Steps to Reproduce

      1. Add a "Lookup Objects action". Lets say it returns an object
      2. You want to find the size of one of its attributes(lets say it has 3 values). You use the below smart-value:
      {{lookupObjects.attributeName.size}}
      

      Expected Results

      It will return 3

      Actual Results

      It will return the size of the lookupObjects  i.e. 1 and not the size of the attributes

      Workaround

      If your use-case returns only a single object for "Lookup Objects" action, create a global automation rule and use Branch on IQL. Then you can use the below smart-value which will give you the size of the attribute:

      {{object.attributeName.size}}

      However, if the "Lookup objects" action return multiple objects, no workaround is available at the moment

      Attachments

        Issue Links

          Activity

            People

              7260236ab89d Justin King
              e87386e27ed9 Simran G
              Votes:
              6 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated: