feat: add iteration filter to issue list command
-
Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA. As a benefit of being a GitLab Community Contributor, you can request access to GitLab Duo.
Description
This PR adds a new iteration list command and an iteration filter for the issue list command. These changes will allow users to fetch iteration information and filter issues by iteration, which is particularly useful for viewing issues in the current iteration.
Changes made:
-
Added an IterationID filter to the issue list command. -
Created a new iteration list command to fetch iteration information from the GitLab API. -
Updated tests to cover the new functionality.
The change adds a new optional parameter IterationID to the ListOptions struct, which is used to filter issues by their iteration ID.
When this parameter is set, the ListType is automatically set to "search" and the IssueType is set to "issue".
This allows users to easily list issues associated with a specific iteration.
Related Issues:
Resolves #7627 (closed)
Edited by Mohammed Firdous