Skip to content

feat(issues): add --type flag to update command#163

Merged
piekstra merged 1 commit intomainfrom
feat/149-update-issue-type
Feb 18, 2026
Merged

feat(issues): add --type flag to update command#163
piekstra merged 1 commit intomainfrom
feat/149-update-issue-type

Conversation

@piekstra
Copy link
Contributor

Summary

Closes #149

  • Adds --type / -t flag to jtk issues update for changing an issue's type without requiring jtk issues move
  • Uses the Jira Cloud bulk move API transparently — the user doesn't need to know about the move workaround
  • Skips the operation if the issue already has the requested type
  • Can be combined with other update flags (--summary, --description, etc.)

Usage

# Change issue type (previously required: jtk issues move MON-123 --to-project MON --to-type Task)
jtk issues update MON-123 --type Task

# Combine with other updates
jtk issues update MON-123 --type Story --summary "Updated title"

Test plan

  • TestRunUpdate_TypeChange verifies the move API is called with correct project/type mapping
  • TestRunUpdate_TypeAlreadyCorrect verifies no-op when type is unchanged
  • TestNewUpdateCmd verifies the --type flag exists with -t shorthand
  • All existing update tests pass with updated function signature
  • golangci-lint run clean

Adds --type / -t flag to `jtk issues update` that transparently uses
the Jira Cloud bulk move API to change an issue's type within the same
project. This provides a more intuitive UX than requiring users to use
`jtk issues move` with --to-project set to the same project.

If the issue already has the requested type, the operation is skipped.
The --type flag can be combined with other update flags (--summary,
--description, etc.) — the type change happens first, then the field
updates are applied.
@piekstra piekstra force-pushed the feat/149-update-issue-type branch from 0da5c77 to 8a263ef Compare February 18, 2026 18:01
@piekstra piekstra merged commit b4efa05 into main Feb 18, 2026
7 checks passed
@piekstra piekstra deleted the feat/149-update-issue-type branch February 18, 2026 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

jtk: support changing issue type without move

1 participant

Comments