Jira Integration
Crewlet integrates with Jira in two directions: agents control Jira via MCP tools, and Jira pushes events to agents via webhooks.
Jira is one of two trackers, and it is not the default. The engine ships
its own, Worklet (tracker.backend: worklet, the default), which needs no
site, project or per-seat account. Set tracker.backend: jira (or declare this
block, which derives it) to run Jira instead, when your people already live
in Jira or you have a backlog there; agents cannot tell the difference. There
is deliberately no migration between the two; see
The Tracker.
Prerequisites: the Atlassian side is set up by hand. Atlassian offers no API for provisioning users, so the operator creates the Atlassian site (Cloud or Data Center) and each agent’s Atlassian account and API token manually, then wires the tokens into mcp_env as shown below. Webhooks are registered the same way on both deployments (see Webhooks); the Crewlet Forge app is an optional alternative on Cloud.
Setting it up from the dashboard
Section titled “Setting it up from the dashboard”Atlassian is one connection in Company › Integrations, listed as Jira (work tracking) and Confluence (docs and knowledge), each with its own state; both open the one Atlassian page, whose form has Jira and Confluence sections. The first field asks which Atlassian you run and decides every later question:
Atlassian Cloud takes an organization id and an unscoped organization API key, nothing else about your sites. The engine discovers the site, its cloud id and its address from the organization and writes them into the config. It also creates one service account per agent seat and mints that seat’s token.
A brand-new account takes about a minute to start working, and the card says so. Atlassian accepts the product-access grant immediately but applies it over the next minute or so; until then Jira refuses the minted credential with 401 Client must be authenticated to access this resource. That is reported as grant_pending (the provider is working on it), not as an agent to fix, on the Atlassian surface for the seat just granted and on the Jira surface for a credential sealed within the last five minutes. Outside that window a refusal is owed by an admin. The window recurs on every reconnect, because disconnecting with Also remove the accounts means the next connect creates new ones.
The form does not offer a site address on Cloud: the config uses a site address instead of the API gateway, and a service account’s token authenticates only at the gateway, so naming a site stops the seats working.
Atlassian Data Center has no organization, cloud id or service accounts, so the address of each product is required, alongside that product’s own token.
The engine generates the webhook credential each deployment needs (a signing secret on Data Center, a URL token on Confluence Cloud) and the reconcile loop registers the hook on its next tick, running the same pass crewlet jira provision runs.
integrations: atlassian: deployment: cloud # or data_center; the form opens on cloud org_id: ${ATLASSIAN_ORG_ID} # Cloud only, from admin.atlassian.com/o/<id> api_key: ${ATLASSIAN_ORG_API_KEY}See Running the provisioning pass.
Configuration
Section titled “Configuration”The integrations.jira block is non-tool config: the admin/service account for org-level REST calls (watcher lookups) and the inbound webhook secret. The Jira MCP tool server is a separate mcp_servers entry shared with Confluence (name it atlassian):
integrations: jira: url: "${JIRA_URL}" # a Data Center instance, or a Cloud site # cloud_id: "${JIRA_CLOUD_ID}" # an Atlassian Cloud id — give this OR url # site_url: "https://acme.atlassian.net" # with cloud_id: the base for links people open token: "${JIRA_API_TOKEN}" # API token (org read account) email: "${JIRA_EMAIL}" # Cloud only — the account's email, for Basic auth webhook_secret: "${JIRA_WEBHOOK_SECRET}" # Data Center: required, HMAC-SHA256 # webhook_name: crewlet # which hook on the instance is this deployment's
mcp_servers: - name: atlassian # shared by Jira + Confluence (one mcp-atlassian) shared: false # per-agent: each role supplies its own token command: uvx args: ["mcp-atlassian==0.23.1"] env: JIRA_URL: "${JIRA_URL}" # declare explicitly — the engine does not inject itHuman-clickable links agents share: with cloud_id, the mcp-atlassian tools return api.atlassian.com/ex/jira/{cloud_id}/... gateway URLs colleagues can’t open. For a clickable …atlassian.net/browse/{ISSUE-KEY} link, set a skill variable (skill_variables.jira_base_url: "https://mycompany.atlassian.net") for your mention/link Tool Skill to reference. The bundled examples/tool-skills/platform-mentions.md does not: it links to Worklet and Doclet through ${crewlet_base_url}, so a company on Jira gives its link rule a skill of its own. Every issue mcp-atlassian 0.23.1 returns carries a browse_url built from the server’s own JIRA_URL: it opens in a browser when that is the site, and sits under the gateway when it is the gateway, where the prompt-layer variable is the only clickable base an agent has.
url and cloud_id are two ways to name one instance, so config validation refuses both together (with both set the engine reads through the Cloud gateway and url would serve links only).
The REST version is derived from the address, and declared only where the address cannot say. Cloud serves /rest/api/3 and names people by accountId; Data Center serves /rest/api/2 (v3 is a 404 there) and names them by username. Both identity fields are read wherever a person appears, so routing works on either.
- Cloud hosts: a site under
atlassian.net,jira.comor Government Cloud’satlassian-us-gov-mod.net, or the gateway acloud_idis read through (api.atlassian.com, or Government Cloud’sapi.atlassian-us-gov-mod.com). Otheratlassian.comhosts are not Cloud sites (jira.atlassian.comis Atlassian’s own self-hosted Jira). - Any other host is what
integrations.atlassian.deploymentdeclares, and Data Center when the company declares nothing; the form’s default ofcloudis not a declaration, so a company that never wrote the field keeps Data Center. - Atlassian Isolated Cloud gives each customer a base domain no host list can name: declare
deployment: cloudand give the site’s own address asurl(not acloud_id, whose gateway is on that same base domain). - A declaration never overrules Atlassian’s own hosts: validation refuses
data_centerbeside anatlassian.neturl or acloud_id. - A site’s custom domain serves browsers only, not the REST API:
urlstays theatlassian.netaddress and the custom domain goes insite_url.
Config validation, this client and the Confluence client decide by this one rule from the same declaration.
A cloud_id is read through the gateway of its site’s Cloud. The commercial gateway does not serve a Government Cloud site, so the engine reads through api.atlassian-us-gov-mod.com when site_url is a Government Cloud site (…atlassian-us-gov-mod.net) and api.atlassian.com otherwise. A Government Cloud company naming its site by cloud_id gives site_url beside it, or gives the gateway address itself, https://api.atlassian-us-gov-mod.com/ex/jira/{cloud_id}, as url.
email decides the authentication scheme. With one, the engine sends Basic base64(email:token) (Cloud); without, a bearer token (a Data Center personal access token). The same credential is rejected purely on which scheme carried it.
site_url is the base for links a person opens. With a cloud_id the REST base is a gateway (api.atlassian.com/ex/jira/{cloud_id}) a browser cannot open, so without site_url the engine omits the link from a notification. With a plain url it defaults to that.
webhook_name says which hook on the instance is this deployment’s. The reconcile converges the hook carrying that name whatever address it points at, so a change of public base leaves no live orphan. A hook with the name but a path other than /webhooks/jira was not registered by this engine and is left alone. It defaults to crewlet, and two deployments watching one instance must set two names (staging and production of one company share this document; with one name each pass would repoint the other’s hook). crewlet jira decommission removes the hook by the same name.
On Cloud, webhook_secret works as on Data Center: the engine registers an admin webhook signed with it. Validation does not require it for Cloud, because a company on the Forge relay has no HMAC in its path; instead the reconcile refuses to register a hook it cannot sign, and says so. The same holds for a url whose host is a ${VAR} in a company declaring no deployment: validation judges the deployment unknown rather than Data Center, and the reconcile names webhook_secret once the address resolves to a Data Center instance. Declare deployment: data_center and validation asks for it up front; a reference only in the path (https://jira.example.com/${JIRA_CONTEXT}) leaves the host judged as written. The Forge route stays available, verified by the app’s invocation token against integrations.forge_app_id and this block’s cloud_id.
MCP Server (Agents Control Jira)
Section titled “MCP Server (Agents Control Jira)”The atlassian MCP server gives agents full Jira capabilities: creating issues, transitioning statuses, adding comments, managing assignees. Set JIRA_URL in the server’s env; the engine does not derive it from integrations.jira.url. Naming the server atlassian is also what lets the engine find each seat’s credential: it reads mcp_env.atlassian to learn which account each seat is and to run the Confluence knowledge search as that seat.
The server is pinned, and five of its tools read the engine host’s files.
The entry names mcp-atlassian==0.23.1, the newest release, because these pages describe that release’s tools and variables, and uvx with no version runs whatever was published last. One change is announced: with TOOLSETS unset, 0.23.1 serves every toolset and warns at each start that a later release will serve only its six core ones, which leave out jira_get_user_profile among others.
Five tools post a file from the node the seat runs on: jira_update_issue attaches the paths its attachments names, confluence_upload_attachment and confluence_upload_attachments upload a file_path, and confluence_create_page and confluence_update_page read a page body from a content_file. The server refuses a path outside its working directory, inherited from the engine: the directory it was started in, where the default store.path puts crewlet.db, and in the published image the engine user’s home, where harnesses keep their sign-ins (~/.crewlet/llm-harness). Start the engine in a directory holding none of its own files, with store.path outside it, or every seat running this server can attach the engine’s database to an issue.
Per-Unit Jira Projects
Section titled “Per-Unit Jira Projects”Declare the unit’s Jira project under project (its integration identity), and put each agent’s token in mcp_env.atlassian:
units: - name: Core id: core # the unit's key; `name` above is display type: team lead: cto # the lead seat's handle project: "ENG" # the unit's Jira project (integration identity) roles: - name: CTO mcp_env: atlassian: { JIRA_USERNAME: "${CTO_JIRA_USER}", JIRA_API_TOKEN: "${CTO_JIRA_TOKEN}" } - name: Engineer mcp_env: atlassian: { JIRA_USERNAME: "${ENG_JIRA_USER}", JIRA_API_TOKEN: "${ENG_JIRA_TOKEN}" }mcp_env.atlassian carries the mcp-atlassian server’s env vars directly: JIRA_USERNAME, JIRA_API_TOKEN, the matching Confluence creds, and JIRA_PROJECTS_FILTER / CONFLUENCE_SPACES_FILTER for scoping, or any var the server reads.
The unit’s project / space is integration identity (webhook routing + write home), not a tool credential, and does not scope knowledge reads. A seat’s mcp_env.atlassian is layered over its unit’s, variable by variable, the seat’s values winning, so each agent authenticates as itself. Only the unit’s direct agent seats inherit the unit’s block; a human seat inherits none.
Webhooks (Jira Pushes to Agents)
Section titled “Webhooks (Jira Pushes to Agents)”Both deployments register a webhook the same way, through the admin webhook API. On Cloud the Crewlet Forge app is an optional alternative.
Jira Cloud — an admin webhook (the default)
Section titled “Jira Cloud — an admin webhook (the default)”Cloud registers an ordinary webhook, as Data Center does. crewlet jira provision -public-url https://your-engine.example.com creates it, signs it with integrations.jira.webhook_secret, and the /webhooks/jira route verifies the X-Hub-Signature it sends.
The dynamic webhook API (/rest/api/3/webhook) answers 403 Only Connect and OAuth 2.0 apps can use this operation. The engine calls the admin webhook API (/rest/webhooks/1.0/webhook) instead: a Jira administrator authenticates there with an ordinary API token, the hooks never expire, and every event and JQL filter is available.
The account whose token is in integrations.jira.token needs the Administer Jira global permission to register one.
Jira Cloud requires the URL to be HTTPS with a certificate from a trusted CA, and permits only a fixed set of ports (443 among them; port 80 is rejected). A tunnel such as cloudflared satisfies both; a self-signed certificate does not.
Jira Cloud — the Forge app (optional)
Section titled “Jira Cloud — the Forge app (optional)”The Crewlet Forge app is the alternative when you would rather not expose an inbound URL to Jira directly, or already run it. It forwards these Jira issue events:
avi:jira:created:issue— new ticket createdavi:jira:updated:issue— ticket field changed (status, assignee, priority, etc.)avi:jira:deleted:issue— ticket deleted
Events are delivered via Forge Remote to POST /webhooks/forge, each with a Forge Invocation Token. The engine accepts one only when it is for integrations.forge_app_id and names this block’s Cloud site, so an installation of the same app on another site is refused. The token names its site by cloud id only: a block naming cloud_id is bound to it directly, and one naming its site by url needs no change, since the engine reads that site’s cloud id from its public /_edge/tenant_info once and keeps it. While the id cannot be read, or while the block names no address yet (setup fills cloud_id and site_url from the Atlassian organization), Jira events on the route answer 503, and each is lost: Forge retries a refused event up to four times, 60 seconds apart (Forge Remote), then drops it. The Atlassian card on the Integrations page, and setup’s answer, say why and what to do. Switching a block from url to cloud_id also moves the engine’s Jira reads to the API gateway, so check its token is accepted there. See /webhooks/forge.
Jira Data Center — Direct Webhook Registration
Section titled “Jira Data Center — Direct Webhook Registration”- In Jira, go to Settings > System > WebHooks
- Set URL to
https://your-server.com/webhooks/jira - Select events: issue created / updated / deleted, and comment created / updated / deleted
- Set a Secret for HMAC-SHA256 signature verification
Or let crewlet jira provision -public-url https://your-server.com register it for you; see Provisioning.
Inbound requests are verified with HMAC-SHA256 against the X-Hub-Signature header, at the route, before the delivery is recorded or published (as the GitHub and GitLab webhooks do). POST /webhooks/jira is exempt from the API’s bearer token because it authenticates by provider HMAC. Invalid or missing signatures are rejected with 401.
The webhook address is what a hook points at: api.public.external_url when the deployment has a public listener (api.public), api.external_url otherwise. With neither set, the reconcile registers nothing; on Data Center that is reported as degraded, naming the key this deployment reads. Cloud is exempt: its events can arrive through the Forge app at an address this engine never registered, so silence there is a working company.
webhook_secret is required for Data Center webhooks: without one the endpoint answers 503 with a Retry-After, as its peers do, rather than accepting deliveries it cannot verify. It is deliberately not a 4xx, which would tell the sender to discard a delivery nobody else has a copy of; the delivery waits at Jira and flows once the secret is set. Cloud is unaffected: its events arrive through the Forge app on /webhooks/forge and carry a JWT instead.
Delivery deduplication
Section titled “Delivery deduplication”Jira states a per-delivery identifier on both deployments (X-Atlassian-Webhook-Identifier) and repeats it on its own retries, so the webhook edge claims each delivery fleet-wide before publishing it. A retry (Jira’s own, or an operator’s replay from the admin page) is answered 200 {"status":"duplicate"} and wakes nobody. The claim lasts five minutes. A Cloud event relayed through Forge carries no such header and is claimed on a hash of the raw body: byte identity is preferred to derived coordinates, which can collapse two different events into one.
Routing strategy
Section titled “Routing strategy”Once an event passes signature verification and the delivery claim, the parser fans it out by the STRENGTH OF THE CLAIM ON THE RECIPIENT’S ATTENTION: the first reason found for a person wins, and it is what the prompt renders. The actor is excluded from every step.
- @mentions — every account named in a
mentionnode inside the comment’s ADF body gets a copy withrouted_via = "mention". This is the only step covering a non-watcher who got @‘d, since Jira’s watcher list does not auto-include mentioned users. - Assignee — the issue’s assignee, if not already reached, gets
routed_via = "assignee". - Watchers — fetched from the Jira REST API with the
integrations.jiraorg credential; each watcher not already reached getsrouted_via = "watcher". Without an org token this step is skipped and the integration still routes what the payload names. - Project-lead fallback — if steps 1–3 reached nobody in the org chart, the lead of the unit that owns the project (its
project) getsrouted_via = "project_lead_fallback". It does NOT fire when the actor is the issue’s own assignee: somebody took the work in the open.
Mentions lead because a mentioned user is usually also a watcher; walking watchers first would tell a colleague asked a direct question that they are merely “watching this issue”.
A copy is produced only for somebody the engine can resolve: an agent seat whose Jira account is registered (see Seat identity), or a human seat reached by the assignee’s email address or by contact.atlassian_account_id. An ordinary Jira user not in the org chart is dropped.
The lead-fallback exists because a ticket filed into a project nobody watches produces no error anywhere. A project with no lead in the org chart routes to nobody rather than to a guess, and logs jira_project_has_no_lead at boot.
Lead-fallback prompt hint
Section titled “Lead-fallback prompt hint”When a lead receives an event via project_lead_fallback, the Jira notification prompt adds a ## Why you received this section that names the project, tells the lead it owns the issue by fallback and that no one else is following it, and lays out three decisions:
- Delegate — look the right teammate up on the team for their Jira account ID, then set the assignee (later updates route to them, not back to the lead).
- Take it yourself — only if the work clearly falls to the lead: assign the issue to yourself.
- Escalate — if the issue is out of scope or the lead can’t tell whose it is, hand it to their own manager by mentioning them in a comment on the issue or reassigning it to them.
The hint is suppressed for watcher / assignee / mention routings, which carry their own signal of involvement. The block describes the CAPABILITY (“set the assignee”) rather than naming a tool, because the engine cannot know the deployed MCP server’s tool names; see Tool capabilities.
The ## How to handle this section also follows the routing, by the same two rules as Worklet’s:
- Staying out is for a routing nobody is waiting on. “If its assignee is neither you nor on your team, stay silent” is rendered for a
watcher(or a routing with no reason), never forassigneeormention, which the prompt reads as addressed: the turn engine holds those to an answer. - Reassigning is for the issue’s holder. Only an
assigneerouting is told how an issue is declined here: reassigned to the right teammate (looked up for their Jira account id), or to the seat’s manager if it cannot tell. A mentioned seat is asked about an issue that is not its to move; a watcher is not asked at all.
That an addressed wake may not end in silence, and that a decline names the right owner on the surface the ask came from, are stated by the executor’s contract, and the turn engine enforces the first.
What the atlas reads of the organization
Section titled “What the atlas reads of the organization”On Jira Cloud, the engine reads the Atlassian organization’s products for the company’s atlas, once an hour unless atlas.refresh_interval_seconds says otherwise. It reads under integrations.atlassian.api_key, the organization API key the agents’ accounts are made with, and needs no other key or scope. Nothing at Atlassian is changed. A Data Center company has no organization, and nothing is read.
| Part | Calls | Key | What the atlas gains |
|---|---|---|---|
| Workspaces | POST /admin/v2/orgs/{org}/workspaces, a query, followed to the listing’s end | the organization API key, created without scopes | each site as an account, with its cloud id, and what each product makes of the account it is on |
A product is what an account does. The atlas shows a site, not a card per product:
| Capability | Product |
|---|---|
tracker | every Jira: Jira, Jira Service Management, Jira Product Discovery |
knowledge | Confluence |
code_hosting | Bitbucket |
alerting | Opsgenie |
A product on a site is said of that site’s account. A product on no site (Bitbucket) is said of the organization’s account. Any other product says nothing, and no product’s name is recorded.
The site the engine works in is one entry. A site is keyed by its address’s host, as the settings key the site integrations.jira and integrations.confluence work in, so the two are one account. The read names a site, and places it at its address, only where the settings name no site at that host (a sandbox site, or a second site the engine does not work in).
Nobody is read. Each listing row names who created and who owns the workspace; the engine reads only its identifier, product and address.
A refusal is a finding, never a failed read. Where Atlassian refuses the listing with a 403 (a key created with scopes that leave it out), the source’s standing on the atlas says which key to use, and sites an earlier read recorded stay as they were. A key Atlassian does not know fails the read as a rejected credential.
Cost and limits. A read costs one call per listing page. When Atlassian answers with its rate limit, the call waits as long as Atlassian asks (five seconds where it names none), up to three times and thirty seconds a wait; past that, or when the listing fails part way, the read stops and records nothing, and the engine reads again five minutes later. A site that two complete reads at least a day apart both miss is retired from the atlas.
Per-agent access
Section titled “Per-agent access”Each agent seat that works in Jira or Confluence gets one Atlassian service account in the organization, created by the engine with the organization’s unscoped API key (integrations.atlassian). Jira and Confluence are two lanes over that one account, each set on the seat and edited on the integration’s Agents tab:
roles: - name: SRE integrations: jira: enabled: true # off until turned on project_role: "10101" # a project role id from the site (GET /rest/api/3/role) projects: [GOP] # empty: every project the company namesProject keys are compared as Jira matches them, in any case: gop is GOP, within the company’s reach and never read as a change.
| What the seat holds | How the engine applies it |
|---|---|
| Product access | One grant per product, the same for every agent: Jira’s product member role on the site. What an agent may do comes from the role below and each project’s permission scheme. |
| The project role | The seat’s account is an actor of that role in each listed project, and of no other role in any project the company or a seat names. The roles offered are the site’s own, read live. Administrators is an administration role: a raise to it carries a warning and asks for a fresh step-up. |
| Product access only | The first level offered: the account has Jira and no project role, so each project’s permission scheme alone decides what it sees. Leave project_role and projects out. Moving a seat from a role to product access only removes its project roles; a projects list needs a role. |
| The token | One API token for the account, with the scopes of the products the seat is on: Jira’s read:jira-work, write:jira-work and read:jira-user, and Confluence’s when that lane is on too. Its label, crewlet-<handle>-<lanes>-<time>, records which products it reaches, because Atlassian lists a token’s label and not its scopes. |
| Off | The seat’s project roles are removed and its token is replaced with one without Jira’s scopes, or revoked when the seat is off on Confluence too. Atlassian offers no route removing one product’s access from a service account, so the account keeps its product grant and the Agents tab says so. |
| Remove | A separate, confirmed action, allowed only while the seat is off on both Jira and Confluence: the service account is deleted. |
| Rotate | A new token with the same scopes is minted and sealed, then the previous one is revoked. A token made by hand on the account is never touched. |
The token is sealed under ATLASSIAN_TOKEN_<HANDLE> and the address Atlassian assigned the account under ATLASSIAN_EMAIL_<HANDLE>; no document names either. Project roles are managed with the site credential in integrations.jira, whose account needs Administer Projects on the company’s projects (or Jira administration).
Every pass reads each account back: whether it exists, which products its live token reaches, and which role it holds in each project. A role changed by hand is restored to the document’s setting and reported; the Agents tab offers Keep the vendor’s setting instead.
Seat identity
Section titled “Seat identity”A Jira webhook names people by account id, and nothing in the org chart declares which account a seat holds. Without that mapping every routing target is dropped and the integration is silently inert.
So the engine asks: at boot and on every config apply it calls /myself with each seat’s OWN credential and registers whatever account answers. The credential is the one the engine sealed for the seat (ATLASSIAN_TOKEN_<HANDLE> with ATLASSIAN_EMAIL_<HANDLE>, see Per-agent access); for a document written before per-seat access it is read from mcp_env.atlassian or mcp_env.jira. mcp-atlassian, the community server these pages run, covers both products, so the documented entry is named atlassian; a Jira-only server is named jira. Write it as that server reads it: JIRA_USERNAME and JIRA_API_TOKEN on Cloud, or JIRA_PERSONAL_TOKEN alone on Data Center. mcp-atlassian reads no other spelling, and given a token without its username it starts with no Jira tool at all. The engine names no variable of its own: for a server that spells them differently it also takes the token under JIRA_TOKEN, ATLASSIAN_API_TOKEN or Authorization, and the address under JIRA_EMAIL or ATLASSIAN_EMAIL. Declaring the account id beside the token is the wrong shape: a declaration that disagrees with the credential is a misroute nothing can detect.
Lookups are cached on the credential, so a config apply that changed something else costs nothing; a rotated token costs exactly one request. A seat whose lookup fails is left unresolved rather than failing the boot, and logs jira_seat_identity_unresolved; it receives no Jira events until the next apply re-resolves it. A company where no seat resolved logs jira_has_no_seat_identities.
A human seat holds no tool credential and is never probed. Give them contact.atlassian_account_id (one id covers Jira and Confluence) and they are registered from config; failing that, an issue assigned to them still routes by the assignee’s email address.
Provisioning
Section titled “Provisioning”crewlet jira provision company.yaml -secret-store -public-url https://engine.example.comJira issues no credentials on a provisioner’s behalf (a Cloud API token is created by its owner, and a Data Center personal access token can only be minted for the calling user), so this command reports far more than it changes. It does the three things Jira allows:
- Which account each seat’s credential authenticates as, and which seats have none. A seat with no account id receives nothing. A lookup the instance did not answer (a timeout, a 5xx, a host that does not resolve) is a fault the reconcile loop retries, not a report that the seat has no account: only a credential the instance actually refused is the seat’s problem.
- Whether every project the org chart names exists, and whether Jira’s own project lead agrees with the org chart’s. A disagreement is reported, never failed (a human manager owning a project while an agent triages it is ordinary). A project the instance lacks is almost always a typo, a routing gap nothing else reports.
- The inbound webhook, on Data Center: registered at
<public-url>/webhooks/jira, subscribed to exactly the events the parser routes, with the whole body and an HMAC secret. Ifwebhook_secretresolves to nothing, a fresh secret is minted into the${VAR}it points at and recorded in the sink you chose, unless this deployment has already sealed a value under that variable, which is read back and reused. The read-back matters to the reconcile loop: a${VAR}resolves from a snapshot taken at apply time, so between a pass sealing a secret and the snapshot being rebuilt the resolver answers empty, and without the read-back the loop would mint again every tick. A secret that already resolves is used as-is, since re-registering with a fresh one would make the instance sign with a key the running engine does not hold.-recreate-webhookforces a rotation, which invalidates the secret every other deployment of this company holds, and is refused over a literalwebhook_secret, which has no variable to mint into: point the field at a whole${VAR}, or run without the flag to register the literal as it is.
On Cloud the webhook is registered as on Data Center, through the admin webhook API; the account needs the Administer Jira global permission. On the Forge relay, leave -public-url off and the step is skipped.
Without -public-url nothing is registered and the run says so (a hook pointing at the wrong host is worse than none: the instance reports healthy while delivering into the void). A hook somebody else registered is reported and never touched.
Flags: -secret-store / -env-file PATH / -print (where a minted secret goes; exactly one is required; with -env-file or -print a run that would mint the secret, under -recreate-webhook or where it resolves to nothing, is refused before it reaches Jira where the company’s store holds its ${VAR}, which the engine reads over anything recorded there; see a sink the store outranks), -public-url URL, -recreate-webhook, -dry-run (read and report, register nothing), -config PATH and -api URL (where the company’s values are read and a -secret-store sink records).
The run reads the company’s ${VAR}s (the instance, the org account, the webhook secret and each seat’s credential) through the running engine, with one of its Tier A tokens in CREWLET_API_TOKEN, or through the node -api names, and with this node’s engine stopped from the fleet’s store itself, through the node’s own broker or the external one; on a member of a cluster whose engine is stopped it is refused before it reads or registers anything, -dry-run and -recreate-webhook included (where a command reads the company’s values).
How It Works
Section titled “How It Works”Task state lives in Jira; the engine mirrors nothing. Webhooks become ExternalNotification inbox events for the routed agents (watchers, assignee, @-mentions, project-lead fallback), and every write back to Jira happens through the agents’ own MCP tools:
There is no engine-side sync layer, completion-comment automation or reconciliation poller: each MCP-tool action an agent takes fires the next webhook, which wakes the next participant, as a human teammate would. A lost delivery is recovered as for a human: the issue’s next activity (a comment, a transition, a nudge from a colleague) re-notifies the routed agents.
See The Tracker for why the engine keeps no state of its own on this backend, and for Worklet, the one it ships, which is the default.
Part of Crewlet. Generated from crewlet/crewlet main at 3f5565e.