Multi-select lists can keep showing a removed value or the old technical name of a value
Description
Problem
A multi-select list can keep drawing a chip that is no longer part of its value. It happens when the app, not the user, changes the value or its label:
-
the list opens with ids and the names load a moment later: the chip with the technical name (for example
customfield_10224) stays next to the chip with the real name; -
the app hides a chosen value: its chip stays on the screen together with the placeholder.
The value itself is correct, only the display is wrong. Removing a chip with its x or with Backspace worked in the check.
Found by QA in AP-2245 (Exclude from group > Users from work item fields), where that one list was fixed by rebuilding it when its options change. Other multi-select lists were not checked.
Cause
-
Atlaskit's
@atlaskit/react-selectanimates chips when the Atlaskit flagplatform-dst-motion-uplift-labelsis on, and a chip that disappears because its label changed is never removed. Reproduced on a separate page with the same library: with the flag on the old chip stays, with the flag off it does not. -
The app does not turn the flag on itself. The app iframe in Jira is opened with
platformFeatureFlags=forge-ui-iframe, so Forge probably provides the flag; this and the state on production are to be confirmed.
Change
-
Find out where the flag comes from in the app iframe, in Jira and in Confluence, and whether it is on in production.
-
Make multi-select lists show exactly their value, with one solution for the whole app (preferred: switch off the chip animation for the app), and remove the local workaround from AP-2245 (the
keyinExcludedUserFieldsField) if it is no longer needed.
Places with multi-select lists: definition settings and starter groups, label conditions, page versioning (definition and settings), Exclude from group, automation step labels, delegation form, AI custom fields, Confluence permissions, parametrize options.
Acceptance criteria
-
A multi-select list never shows a value that is not chosen, nor a technical name after the real name has loaded.
-
Adding and removing values by the user works as before.
-
Checked in Jira and in Confluence.
Manual tester notes
-
Open saved items that use each of the lists above (for example a definition with starter groups, a delegation with a scope, a step with excluded fields): every chosen value is shown once, with its name.
-
Add and remove values with the list, the x and Backspace: the list shows exactly the chosen values and the placeholder only when it is empty.
-
AP-2245: exclude field A, pick field A as Work item field, add field B: only field B is listed, also after saving and reopening the step.