Update 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 the issue key and requested changes.
- Map the request to supported flags:
--summary,--assignee(email or "me"),--priority--labels <LABEL,...>,--components <NAME,...>,--fix-versions <VERSION,...>--parent <ISSUE-KEY>to re-parent an issue--description-file <FILE>(Markdown input)--field <ID=VALUE>for custom fields (repeatable, e.g.--field customfield_10016=5)
- Run
jirac issue update <ISSUE-KEY> ...with only the requested fields. - If custom field IDs are unclear, run
jirac issue fields -p <PROJECT> --issue-type '<TYPE>'first. - Confirm the update result clearly.
Examples:
- "update PROJ-123 summary to fix OAuth callback" →
jirac issue update PROJ-123 --summary 'fix OAuth callback' - "set PROJ-123 priority to High and assign to me" →
jirac issue update PROJ-123 --priority High --assignee me - "add labels backend,api to PROJ-123" →
jirac issue update PROJ-123 --labels backend,api - "set fix version to v2.0 on PROJ-123" →
jirac issue update PROJ-123 --fix-versions v2.0 - "set story points to 8 on PROJ-123" →
jirac issue update PROJ-123 --field story_points=8