— (optional) Base directory for all temp assets (raw JSON, attachments, parsed output). Defaults to
.implement-assets/jira
When invoked by the orchestrator (e.g.
implement
),
$ARGUMENTS[1]
is provided. When used standalone, it defaults to
.implement-assets/jira
.
System Requirements
jira
CLI installed and configured (
https://github.com/ankitpokhrel/jira-cli
)
Environment variable
JIRA_API_TOKEN
set with a valid Jira API token.
Important:
When checking this variable, verify at least 2 times before concluding it is not set. Environment variables can appear unset due to shell context differences.
Never expose the value
— use existence checks only (e.g.
test -n "$JIRA_API_TOKEN"
).
Execution
Pre-flight check
Run
jira me
to verify the CLI is installed
and
authenticated — if it fails, follow error handling in
If the parsed JSON contains a non-empty
attachments
array, download them:
Run
node ./scripts/download-attachment.js --out $ARGUMENTS[1] < $ARGUMENTS[1]/raw.json
via Bash
Include downloaded attachment file paths in the output
Return the parsed JSON output (see
references/output-format.md
for schema reference), including attachment download paths if any