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

Set an Insight Attribute with multiple Object to reference does not work when using Automation

XMLWordPrintable

      Issue Summary

      Try to use an A4J rule, using Smart Values to set an Object's reference Type Attribute (object) with multiple objects, using Smart Value: lookupObjects.

      According to the Audit log, the Action is attempting to set the attribute with the combined values, using = and not IN () hence the action fails.

      This is reproducible on Data Center: no

      Steps to Reproduce

      1. Configure Object Type A to have an Object Type Attribute to reference Object Type B, with Cardinality Max >1
      2. Make sure you have a few objects in Object Type B
      3. Configure an automation rule:
      • When, Object Created
      • Use the Action "Lookup Objects" with IQL: objectType = "Object Type B"
      • add an Action; Edit Object Attribute, edit the "Object Type A" Attribute to reference "Object Type B" with any of these smart values:
      {{lookupObjects}}
      {{#lookupObjects}}{{Key}}{{/}}
      {{#lookupObjects}}{{Key}}{^last}}||{{/}}
      
      1. Create an Object of the type A

      Expected Results

      The New object is referencing ALL the Object Type B Objects

      Actual Results

      If there are more than 1 objects in the lookupObjects smart value - No Object Type B objects are referenced, the Automation results in :

      Edit Insight field attributes
      Error updating Object(s)
      Attribute value is not valid on Objects
      PFNL-19749 (Network Location = PFNL-17346, PFNL-17347)

      (this error results from lookupObjects

      Workaround

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

              Unassigned Unassigned
              8cdc82c96fd5 Yinon Negev
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: