Uploaded image for project: 'Jira Service Management Data Center'
  1. Jira Service Management Data Center
  2. JSDSERVER-15126

Unable to clear BASIC search filter when there are duplicate attribute names

XMLWordPrintable

      Issue Summary

      Unable to clear the basic search criteria when the attribute name has duplicates

      This is reproducible on Data Center: (yes) / (no)

      Steps to Reproduce

      1. Create sample project with Assets Data
      2. Add duplicate attribute for two of the object types
        1. In this example, for Network Interface & CPU, add an attribute individually called as Hostname
        2. Add sample values for the newly added attribute under both the object-types.
        3. Select Server Components and try to select Hostname attribute and it will show both the attributes.
        4. When you select any of the Hostname  attribute, it will show only the values from the first child object-type, which is from "Network Interfaces". This issue is seen even for inherited attributes.
        5. Once you select and do a search, there after you will not be able to clear the search parameters using the (Remove criterion) button.

      Expected Results

      Search filter with Hostname should clear

      Actual Results

      Filter is persisting even after requesting for it to clear using (Remove criterion) button.
      There are no exceptions in the logs however below are the difference in the working and non-working scenarios.

      Working Scenario (non-duplicate or inherited attributes)

      • {
          "objectTypeId": 7,
          "filters": [],
          "attributesToDisplay": {
            "attributesToDisplayIds": []
          },
          "page": 1,
          "asc": 1,
          "resultsPerPage": 25,
          "includeAttributes": false,
          "objectSchemaId": 1
        }

        Non-working scenario (duplicate attribute)

      • {
            "objectTypeId": 7,
            "filters": [
                {
                    "objectTypeAttributeId": 142,
                    "selectedValues": [
                        "APC-2-1",
                        "APC-2-2",
                        "APC-2-5"
                    ]
                }
            ],
            "attributesToDisplay": {
                "attributesToDisplayIds": []
            },
            "page": 1,
            "asc": 1,
            "resultsPerPage": 25,
            "includeAttributes": false,
            "objectSchemaId": 1
        }

      Workaround

      Switch to Advanced search, clear the search parameters, or perform a search using the same parameters from the Advanced option. There after, switching back to Basic will allow you to clear the attribute selection.

        1. image-2024-02-15-23-54-16-441.png
          28 kB
          Nikhil Janardhanan
        2. image-2024-02-15-23-56-43-497.png
          28 kB
          Nikhil Janardhanan
        3. image-2024-02-15-23-58-36-042.png
          32 kB
          Nikhil Janardhanan
        4. image-2024-02-16-00-01-55-944.png
          40 kB
          Nikhil Janardhanan

              Unassigned Unassigned
              4a39baba09d4 Nikhil Janardhanan
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: