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

Updating non-required attribute on an Assets object shows 'At least one value must be set' on the UI

    XMLWordPrintable

Details

    Description

      Issue Summary

      This is reproducible on Data Center: N/A

      Unable to leave the non-required attributes value blank for existing objects with minimum cardinality set to "0" in the new Assets UI if any other attribute has the minimum cardinality set to "1" in the object type. This issue is not faced for the newly created objects in the object type.

      Steps to Reproduce

      1. Have an object created with some attributes. For this test, 3 of them ('one', 'two' 'three'), text.
      2. Have the 'one' attribute empty, and fill 'two' and 'three' with some value.
      3. Update the object type and set 'one' as required (cardinality minimum value is set to 1).
      4. Try to update the object that was previously created. Remove the values of 'two' and 'three'.
      5. The UI will show a warning 'At least one value must be set' for attributes 'two' and 'three'.

      Expected Results

      Just the 'one' (required) attribute should show that message.

      Actual Results

      The non-required attributes will appear as if they were required. This can cause a lot of confusion.

      Workaround

      The workaround would be to update the required attribute (one) first, then the others. This way the bug will not trigger.
      Or, you can identify the attributes in the object type with minimum cardinality set to "1" and update the minimum cardinality to "0".

      Attachments

        1. screenshot-1.png
          screenshot-1.png
          30 kB
        2. UI_example.png
          UI_example.png
          123 kB

        Issue Links

          Activity

            People

              Unassigned Unassigned
              57a44904b0a9 Wesley Nery
              Votes:
              5 Vote for this issue
              Watchers:
              18 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: