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

Assets In-line attribute editing has no validation on referenced objects, which may "corrupt" data integrity and block it from updating during an import

    • 1
    • 1
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      Issue Summary

      This is reproducible on Data Center: (no)

      With the recent introduction of the new UI/UX in Cloud - users can now edit attribute values in-line, while before they had to use an Edit screen.

      This, however, allows a user to break an AQL constraint on an Attribute, without any validation to block the action, by editing the dependent attribute in-line, breaking an object's data integrity, and possibly affecting imports.

      Steps to Reproduce

      1. Create two object type; OTA, OTB
      2. On OTA - add a Status Attribute with the Statuses Closed and Active available
      3. On OTA - add an Object Type Attribute to reference OTB, with an AQL filter: Label = ${Status}
      4. Create 2x OTB objects, with labels: "Not Found"; "Running"
      5. Create an OTA object - notice that if you select Active status, the Active OTB object is select-able, and for "Not Found" the "Not Found" OTB object is select-able.
        (At this point lets ignore JSDCLOUD-12529 where if you change the Status in the Create screen - you will still see the previous Status' OTB object available)
      6. Check your object in the new UI>Detail View: an OTA object with Status "Running" referencing the OTB object "Running"
      7. now change the status of OTA to "Not Found"   
      8. Try to import to update any other attribute on the OTA Objects (e.g. add a text attribute to be populated)

      Expected Results

      A validation error / notification to indicate that the referenced OTB object

      Import should be able to update the object as long as the Attribute's integrity is validated

      Actual Results

      No warning when the "parent" attribute has changed to indicate that the dependent attribute is violating its configuration.

      The Import fails to update the object (correctly) - but without any error, and it does set references to the object (unexpected)!

      ...
      

      Workaround

      Currently thee only workaround is to revert to the old UI.

      A workaround will be added here when available

       

      Note:

      Previous behavior - using an Edit screen:

            [JSDCLOUD-12536] Assets In-line attribute editing has no validation on referenced objects, which may "corrupt" data integrity and block it from updating during an import

            There are no comments yet on this issue.

              68b2c74c9aad Mike Jones
              8cdc82c96fd5 Yinon Negev
              Votes:
              5 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated: