-
Notifications
You must be signed in to change notification settings - Fork 0
feat: add field flags and filters to issue commands #25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
alexec
commented
Nov 23, 2025
- Add -f flag support for update-issue-status to set custom fields during transitions
- Add filters to list-issues: -a (assignee), -t (type), -p (project)
- Move FieldFlag type to internal/flag package
- Improve issue listing output with type and better formatting
- Use DoTransitionWithPayloadWithContext for all transitions
- Add -f flag support for update-issue-status to set custom fields during transitions - Add filters to list-issues: -a (assignee), -t (type), -p (project) - Move FieldFlag type to internal/flag package - Improve issue listing output with type and better formatting - Use DoTransitionWithPayloadWithContext for all transitions
- Update getIssueHandler to include Type field - Use DoTransitionWithPayloadWithContext in updateIssueStatusHandler - Use CreateWithContext in createIssueHandler - Add filter support to listIssuesHandler (assignee, issue_type, project) - Update listIssuesHandler output format to match main.go - Add BoardType filter to addIssueToSprintHandler - Update tool definitions to include filter parameters
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR enhances the Jira CLI with flexible field flags and filtering capabilities. It adds support for setting custom fields during status transitions and provides granular filtering options for listing issues.
Key changes:
- Introduced
-f field=valueflag forupdate-issue-statuscommand to set custom fields during transitions - Added filtering flags (
-a,-t,-p) tolist-issuescommand for assignee, type, and project filtering - Refactored
FieldFlagtype into a dedicatedinternal/flagpackage
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| internal/flag/field_flag.go | New package containing FieldFlag type for parsing field=value pairs |
| main.go | Updated update-issue-status and list-issues commands with flag support, improved formatting, and enhanced error handling |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>