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

Assets attribute AQL filter lists objects different from selected attribute type

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Low Low
    • Assets - AQL
    • None

      Issue Summary

      Asset object type attribute lists objects different from selected type if AQL filter is applied with OR clause.

      Steps to Reproduce

      1. Have two ObjectType attributes referencing different objects on ObjType A:
        1. ObjType A "a1" references to ObjType B
        2. ObjType A "a2" references to ObjType C 
      2. On ObjType B also create an attribute that references ObjType C
      3. Back on ObjType A set a AQL filter on a1 that will use the placeholder value of a2
        a1 = ${a2}
      4. The idea of this filter is that we will only bring the values of ObjType B that have a common reference to objects of ObjType C
      5. Filter works as expected and only retrieve objects from ObjType B
      6. However if we add "OR a1 is EMPTY" then the filter will no longer work and the attribute, despite being associated to ObjType B will retrieve objects from different types that also have a reference to ObjType C

      Object Types Examples

      Mock example created to replicate the issue:

      ObjectType A:
      *

      ObjectType B:

      ObjectType A presenting the broken attribute, listing objects from different types:

      Expected Results

      Filter works as expected and only retrieve objects from ObjType B, despite using "OR <attribute> is EMPTY" clause on AQL

      Actual Results

      Objects from different types are presented under the value selection on the attribute with AQL filter applied.

      Workaround

      Specify the Object Type on the AQL filter for the desired attribute. Following our example:

      linkedLaptop = ${LinkedLaptop} OR linkedLaptop is EMPTY and ObjectType = "Windows Server"

        1. image-2025-09-08-19-05-07-090.png
          152 kB
          Joao Vasconcelos
        2. image-2025-09-08-19-06-03-745.png
          145 kB
          Joao Vasconcelos
        3. image-2025-09-08-19-08-08-033.png
          109 kB
          Joao Vasconcelos

              Unassigned Unassigned
              543d2e85f0a8 Joao Vasconcelos
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: