Board cannot be scoped to current iteration because no cadence is found

Summary

Cadences do not seem to be available for users yet, but when trying to "Scope board to current iteration", the operation fails raising a 500 Internal Error.

Further investigation shows that the underlying error message : No cadence could be found to scope board to CURRENT iteration.

Steps to reproduce

  1. Create a group
  2. Create a new "current" iteration (start date before current date and end date after current date)
  3. Edit the group's issues board and "scope it to the current iteration"
  4. Try to save the board settings
  5. Run into 500 error

Example Project

Any group will do, but here's one: https://gitlab.com/groups/dnldnz-gma/-/boards

What is the current bug behavior?

It's not possible to scope an issues board to the current iteration.

What is the expected correct behavior?

It should be possible to scope the board to the current iteration.

Relevant logs and/or screenshots

Screenshot_2021-09-27_at_14.13.21

Output of checks

This bug happens on GitLab.com

Possible fixes

None, currently.

Edited by Daniel Diniz