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

Select and Object Attribute types using a filter in Assets leads to incorrect values displayed when changing the Attribute value

XMLWordPrintable

      Issue Summary

      The Select and Object Attribute types within Assets can be configured to provide specific options users can choose to fill the Attribute. This can then be used with an Object Attribute type and using filtering only to display Objects that match the filter.

      However when making changes to the Select or Object Attribute, instead of updating the available Objects available, the previous options are left to be selected allowing for incorrect data to be selected.

      Steps to Reproduce

      Setup the Assets configuration

      1. Create an Object Type called Locations
      2. For the Objects add a Select Attribute called State and configure the following options to be selected (click the cogwheel on the Attribute):
        1. Available
        2. Unavailable
        3. Assigned
        4. Decommissioned
        5. Set the Attribute's maximum cardinality to unlimited
      3. Create an Object Type called Laptops
      4. Reproduce steps 1 to 1.4 from the above to create the State Attribute under this Object
      5. Add an additional Attribute calling it Locations, this time selecting Object for the type and referencing the Locations Objects
      6. For the Locations Attribute, set the following AQL Filter:
        State = ${State}

      Reproduction

      1. Create a few of Locations Objects and assigning various State Attributes to them ie:
        1. London - Available, Assigned
        2. New York - Unavailable
        3. Sydney - Decommissioned, Unavailable
      2. Now go to create a Laptop Object and Initially select Unavailable as a State
      3. The Locations Attribute should show New York and Sydney
      4. Remove the Unavailable State and add Available

      In the above example, all three Locations Objects will be shown, however, only London should be present.

      Expected Results

      Only show Objects that are associated with the current Select Attribute selections.

      Actual Results

      Objects filtered for previously are still listed and available to be chosen even though the filter value has changed.

      Workaround

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

              90325da67d46 Mohamed Hassan
              f189ef36d400 Andras M.
              Votes:
              9 Vote for this issue
              Watchers:
              19 Start watching this issue

                Created:
                Updated:
                Resolved: