Upload a file attachment to 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:
- issue key, for example
PROJ-123 - file path
- issue key, for example
- If the issue key or file path is missing, ask for it.
- Verify the file exists before running the command.
- Run
jirac issue attach <ISSUE-KEY> <FILE-PATH>. - Confirm the upload result clearly.
Examples:
- "attach screenshot.png to PROJ-123" →
jirac issue attach PROJ-123 ./screenshot.png - "upload error.log to PROJ-456" →
jirac issue attach PROJ-456 ./error.log