On creating new issues, description gets pre-filled with the latest issue’s description

Summary

On creating new issues, the description of the issue is pre-filled with the content of the last issue created by the author.

Note: This is extracted after confirming that it's not a known issue (slack link - internal)

Steps to reproduce

  1. Try creating a new issue (https://gitlab.com/gitlab-org/gitlab/-/issues/new).
  2. You can find it has the description of the previous issue created by you.

new-issue-old-description-bug

Example Project

https://gitlab.com/gitlab-org/gitlab

What is the current bug behavior?

Incorrect pre-filling of issue's description.

What is the expected correct behavior?

New issue's description should be empty or having the default template's content.

Relevant logs and/or screenshots

Output of checks

This bug happens on GitLab.com

Results of GitLab environment info

Expand for output related to GitLab environment info

(For installations with omnibus-gitlab package run and paste the output of:
`sudo gitlab-rake gitlab:env:info`)

(For installations from source run and paste the output of:
`sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production`)

Results of GitLab application Check

Expand for output related to the GitLab application check

(For installations with omnibus-gitlab package run and paste the output of: sudo gitlab-rake gitlab:check SANITIZE=true)

(For installations from source run and paste the output of: sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true)

(we will only investigate if the tests are passing)

Possible fixes

Edited by Matthew Macfarlane