Creating an Issue on an Issue Board scoped to Iteration does not assign it to currently active Iteration
Summary
When creating an issue on a board scoped to the current iteration the issue isn't assigned to the current iteration.
Steps to reproduce
Tested on 13.8.2:
- Create an Issue Board
- Select "Scope board to current iteration"
- Create new issue from the Issue Board view
- The issue will be visible where it was created
- Select the newly created Issue
- Sidebar does not have an Iteration selector
- Refresh page
- Issue disappears from the board
Example Project
What is the current bug behavior?
The issue created from an Issue Board scoped to a current iteration disappears from the view after the refresh because the iteration is not automatically assigned.
At this moment it is not even possible to add Iteration manually to an Issue created from an Issue Board - it's missing from the Issue sidebar. One needs to leave the Issue Board and edit the Issue to select Iteration.
What is the expected correct behavior?
The issue created from an Issue Board scoped to a current iteration should survive the refresh - the iteration should be assigned to it at the moment it is created.
Relevant logs and/or screenshots
Output of checks
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
- Add
iterationto this spec -- https://gitlab.com/gitlab-org/gitlab/-/blob/master/spec/frontend/boards/boards_util_spec.js#L3 - Add
iterationto the return of this function -- https://gitlab.com/gitlab-org/gitlab/-/blob/master/app/assets/javascripts/boards/boards_util.js#L105
