Closed iterations still show in issues detail
Summary
Iterations that are already closed with past dates still show when selecting an iteration for some issue.
Steps to reproduce
- Create an iteration
- Wait until it closes (after due date)
- Create a new issue
- Save issue
- Access details of issue
- Search for iterations
- Notice the closed iteration still shows, different than a milestone, that only opened and upcoming shows.
This is a problem, since there will be "tons" of closed iterations, and it will be very hard to search for the opened/upcoming ones.
What is the current bug behavior?
Closed iterations show in list for assignment in an issue.
What is the expected correct behavior?
Only opened and upcoming iterations should appear on the list.
Proposal
We already support adding a state
parameter to the iterations
GraphQL object, so all that has to happen is for us to change the query being used to populate the dropdown to send state: "opened"
, which would return all upcoming
and started
iterations.
Relevant logs and/or screenshots
Edited by Gabe Weaver