Configuration: Set work.integration: jira and
work.default_project_code: <KEY> in .accelerator/config.md to
enable auto-scoping. See the
### work section of configure/SKILL.md
for the full reference.
You are setting up the Jira Cloud integration for this project. Work through
the steps below in order, stopping to prompt the user only when a value is
missing and cannot be derived from existing configuration.
Use the site from --site if provided. Otherwise read it from config by running
${CLAUDE_PLUGIN_ROOT}/scripts/config-read-value.sh jira.site "". Run the bare path
directly as an executable; never prefix it with bash/sh/env (a wrapper
prefix escapes the skill’s allowed-tools permission and forces an unnecessary
prompt).
If still empty, prompt: “Enter your Jira Cloud subdomain (the part before
.atlassian.net, e.g. mycompany):“
Use --email if provided. Otherwise read it from config by running
${CLAUDE_PLUGIN_ROOT}/scripts/config-read-value.sh jira.email "". Run the bare path
directly as an executable; never prefix it with bash/sh/env (a wrapper
prefix escapes the skill’s allowed-tools permission and forces an unnecessary
prompt).
If still empty, prompt: “Enter your Atlassian account email:“
On success, .accelerator/state/integrations/jira/site.json is written with {site, accountId}.
Print: “Verified as <accountId> on <site>.atlassian.net.”
On failure, show the error from jira-request.sh and stop.
This writes projects.json (project key/id/name) and fields.json (field
id/key/name/slug) atomically. Both files are byte-idempotent — re-running
against an unchanged tenant produces no diff.
If work.default_project_code is already set, this is a no-op. Otherwise the
helper prints the available projects and prompts for a selection. Offer to
write the chosen key to config.md.
Remind the user to commit .accelerator/state/integrations/jira/{fields,projects}.json
so teammates pick up the shared cache without running /init-jira themselves.
(site.json is gitignored — each developer runs /init-jira to configure their
own credentials.)