feat: add field flags and filters to issue commands#25
Merged
Conversation
Contributor
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
Contributor
There was a problem hiding this comment.
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.