"New related item" dialog unexpectedly changes "Project" field

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Summary

A couple seconds after I open the "New related item" menu item, the dialog's "Project" field changes from one project to another. This is undesired behavior because (1) it's spooky when the dialog's field values change on their own, and (2) I typically want to create related work items within the same project as the source work item, not some other random project.

Steps to reproduce

  1. Open an issue, e.g. https://gitlab.com/smokris/test-related-item/-/issues/1
  2. Click the "More actions" (⋮) menu
  3. Click "New related item"

Example Project

https://gitlab.com/smokris/test-related-item

What is the current bug behavior?

A couple seconds after I open the dialog, the "Project" field changes to a different project.

The bug occurs the first time I open the "New related item" dialog after loading an issue. If I close and reopen the dialog, the dialog's "Project" field correctly shows the same project as the source work item.

What is the expected correct behavior?

  1. The dialog's field values should not change on their own
  2. The "Project" field value should default to the same project as the source work item

Relevant logs and/or screenshots

Here's a screen recording showing the change:
related-item-wrong-project

And a screenshot after the dialog changes on its own:
related-item-wrong-project

Output of checks

  • This bug happens on GitLab.com
  • This bug happens on self-managed
Edited by 🤖 GitLab Bot 🤖