Clone a Jira issue using jirac.
Steps:
- Check that
jiracis available by runningjirac --version. If it is missing, tell the user to install it withcargo install jira-commands. - Extract from the user's request:
- source issue key
- target project (if different from source)
- override summary (optional)
- assignee for the clone (optional — source assignee is NOT copied by default)
- whether to delete the original after cloning (
--move)
- Run
jirac issue clone <KEY> [--project TARGET] [--summary TEXT] [--assignee EMAIL|me] [--move]. - Confirm the cloned issue key clearly.
Notes:
- Copies: summary, description, type, priority, labels, components, fix versions.
- Does NOT copy: assignee (unless
--assigneeis set), comments, attachments, worklogs. --movedeletes the original issue after cloning.
Examples:
- "clone PROJ-123" →
jirac issue clone PROJ-123 - "clone PROJ-123 to project NEWPROJ" →
jirac issue clone PROJ-123 --project NEWPROJ - "clone PROJ-123 with summary 'Copy: login bug'" →
jirac issue clone PROJ-123 --summary 'Copy: login bug' - "move PROJ-123 to OTHER project" →
jirac issue clone PROJ-123 --project OTHER --move