Epic New Issue Widget Selects Random Project
The widget to create a new issue and add it to an epic as a child item selects a random project in which to create the new issue from the Project dropdown.
We think it used to default to the most recently selected project.
See slack conversation here: https://gitlab.slack.com/archives/CETG54GQ0/p1750863612071899
I cannot seem to replicate the randomness locally, but here is a video of the widget just for context:
Screen_Recording_2025-07-16_at_2.15.38_PM
On gitlab.com, I can replicate this issue and can get results like this:
The widget in question:
On one page load:
On another page load:
It never seems to pick a sensible option from the list of my Recently used projects in the dropdown:
This may be due to a change in Add group /work_items/new page (!192681 - merged):
i think i found why. we added logic to fallback to the first item of the project array here in 745db3e2. i assume the order of the array changes :thinkies: i didn't look into that MR but maybe @Coung know?



