Fetch or create Jira issues. Only use when working in a project whose path contains "kontrakcja".
Fetch, display, or create Jira issues.
If ~/.claude/jira-tokens.json does not exist, tell the user to run ~/.claude/skills/jira/auth.sh to authorize via OAuth, then retry.
$ARGUMENTS starts with create (case-insensitive), enter Create mode.Fetch the issue JSON using fetch.sh (it handles token refresh, cloud ID, and the API call internally):
$ARGUMENTS is provided, use it as the issue key:
~/.claude/skills/jira/fetch.sh CORE-1234
--from-bookmark~/.claude/skills/jira/fetch.sh --from-bookmark
fetch.sh fails with a bookmark error, ask the user for the issue key.~/.claude/skills/jira/auth.sh to re-authorize.Present the issue in a readable format:
>) for comment bodies — they render with low-contrast styling. Use plain text under a bold Author — Date: header instead.Create a new Jira issue. Parse $ARGUMENTS for the project key (the word after create). If no project key is given, ask the user.
Gather required information. The user may provide these inline or you may need to ask:
FN, CORE) — requiredBug, Story, Task, Sub-task) — required, default to Bug if the context suggests a bug reporth3. for headings, {{code}} for inline code, {code} blocks for multi-line code).customfield_10115) — always include this field. Write numbered steps (using # for ordered lists in Jira wiki markup) that a QA engineer can follow to verify the fix. This is a separate field, not part of the description.If the issue type is Bug, you must include the customfield_11966 (Bug Classification) field. Choose the most appropriate value:
UI Defect — visual/layout issuesSoftware defect — general code bugsRegression Bug — something that previously worked but is now brokenPre-Release Defect — found before releaseSecurity Issue — security-related bugsDefect in Prod — bugs found in productionCreate the issue by piping a JSON fields object to create.sh:
echo '<JSON>' | ~/.claude/skills/jira/create.sh
The JSON should be the fields object (NOT wrapped in {"fields": ...}). Example:
echo '{"project":{"key":"FN"},"issuetype":{"name":"Bug"},"summary":"Title","description":"Description text","customfield_11966":{"value":"Regression Bug"},"customfield_10115":"# Step one\n# Step two"}' | ~/.claude/skills/jira/create.sh
Parse the JSON response and present the result:
https://scriveab.atlassian.net/browse/<KEY>), and summary.~/.claude/skills/jira/fetch_createmeta.sh PROJECT_KEY "Issue Type"
Then retry with the missing field included.