Skip to content

feat(jtk): add --name filter to fields list #194

@rianjs

Description

@rianjs

Problem

AI agents frequently run jtk fields list --project MON | grep -i "point|story" trying to find the story points field ID. The --project flag doesn't exist, Cobra errors, grep finds nothing, and the agent gives up — even though the field exists in the global list.

Solution

Add a --name flag to jtk fields list for case-insensitive substring filtering on field names. Client-side filtering of the already-fetched global field list — no API changes needed.

jtk fields list --name "story point"
jtk fields list --name "story" --custom -o json

Scope

  • Add --name flag and filtering logic to fields.go
  • Unit tests for filtering, case insensitivity, composition with --custom
  • Update README command docs
  • Add integration test cases

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions