Sync Work Items with Jira or Linear
This guide connects a repository to a remote tracker and keeps the work
items in meta/work/ reconciled with it. Work items function fully
offline — the tracker is optional — but once connected, changes flow in
both directions.
Prerequisites
Section titled “Prerequisites”jqinstalled (andsha256sumorshasumon the PATH).- A Jira Cloud API token (from id.atlassian.com) or a Linear personal
API key (
lin_api_…).
-
Initialise the integration once per repository.
Run
init-jira:/accelerator:init-jira --site your-subdomain --email you@example.comIt verifies your credentials and writes two kinds of state under
.accelerator/state/integrations/jira/: per-developer files (gitignored) and team-shared catalogues (projects.json,fields.json, committed).Run
init-linearand pick the single team the repo is scoped to. -
Store credentials in the local config file. Tokens belong in
.accelerator/config.local.md(gitignored), never the shared config — ideally via a command rather than a literal value:---jira:token_cmd: "op read op://Private/jira/token"------linear:token_cmd: "op read op://Private/linear/token"---See the configuration cookbook for the full recipe including the team-shared side.
-
Declare the active tracker. In the shared
.accelerator/config.md:---work:integration: jiraid_pattern: "{project}-{number:04d}"default_project_code: "PROJ"------work:integration: linearid_pattern: "{project}-{number:04d}"default_project_code: "PROJ"---Without
work.integration,sync-work-itemsstops with an error telling you what to set. -
Preview before the first sync. Run
sync-work-itemswith--previewto see every intended push, pull, and conflict with zero writes on either side:/accelerator:sync-work-items --preview -
Sync. The default mode is bidirectional:
/accelerator:sync-work-items- Local items changed since the last sync are pushed; remote changes are pulled.
- Remote issues with no local counterpart become new local work
items with allocated IDs and an
external_id. - Conflicts (both sides changed) prompt you to type
remote,local, orskipper item. - Work items with local uncommitted edits are never overwritten.
Use
--push-onlyor--pull-onlyfor one-directional syncs (they report conflicts without prompting), and--allto pull beyond the default project scope on Jira. -
Read the summary. The skill ends with an ID-by-ID summary — pushed, pulled, newly created, conflicts skipped — so nothing changes silently. Large operations (more than 25 pulls or creations) ask for confirmation first.
Day-to-day usage
Section titled “Day-to-day usage”create-work-itemoffers to push each new item to the tracker as it is created.show-jira-issue/show-linear-issueand their search counterparts read the tracker directly without touching local state.
See also
Section titled “See also”- Issue Trackers — the integration family overview.
- Work Items — the local work-item lifecycle.
- Which skill do I need?

