Skip to content

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:

Screenshot_2025-07-16_at_2.17.05_PM

On one page load:

Screenshot_2025-07-16_at_2.16.35_PM

On another page load:

Screenshot_2025-07-16_at_2.17.46_PM

It never seems to pick a sensible option from the list of my Recently used projects in the dropdown:

Screenshot_2025-07-16_at_2.22.30_PM

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?

Edited by 🤖 GitLab Bot 🤖