Repository navigation
Description
Overview
A Jira-style methodology recipe, following the same pattern established by the Linear-style recipe (see Related Issues): new extends: task schemas for Jira's issue-type hierarchy, a sprint schema-only container mirroring Linear's cycle, and the Plays needed to make Sprint behave like real Jira Sprints (state-machine transitions, a close-time field lock). Confirmed via direct product documentation research (Atlassian's own docs and REST API reference) rather than assumed, per this session's established discipline for both recipes.
Problem Statement
NodeSpace has no Jira-style methodology recipe today. Unlike Linear's flat Issue model, Jira's hierarchy is Epic → Story/Task/Bug → (optional) Sub-task, with issue-type-specific fields (Story points, Bug severity/environment) and a genuinely stateful Sprint concept (not just a dated container — Sprints have their own future/active/closed lifecycle with field-locking rules on close). None of this exists as schema or Play definitions anywhere in the codebase.
A second, related gap surfaced during this recipe's design (and #2596's, its Linear-style sibling): schema/field descriptions (see #2653) only ever explain a single schema in isolation ("what is epic.target_date"). Nothing teaches an agent the system-wide narrative a methodology recipe actually represents — how an Epic relates to a Story/Bug, what Sprint's future→active→closed lifecycle means as a sequence, why a write gets rejected by a validation Play. That knowledge is inherently cross-schema and belongs to the recipe, not to any one schema's own description.
Proposed Solution
Schemas
task (existing core type, unmodified by this issue) — serves as Jira's "Task" issue type directly, no wrapper schema. Confirmed nothing structurally missing during design: Jira's Summary/Description/Assignee/Priority/Labels/Components all map onto content/child-outline/assignee (existing person.tasks relationship)/priority (5-level scale, #2651)/Collection+member_of (existing, confirmed free) respectively; Reporter and blocking relationships covered by #2637.
story (extends: task):
story_points—field_type: "number", not an enum. Jira teams customize their own point scale (Fibonacci-like or plain integer); constraining to fixed enum values would fight real usage.- Relationship:
story.sprint/sprint.stories(seesprintbelow) - No richer status vocabulary needed — Jira Stories typically run the same To Do/In Progress/Done workflow as Tasks/Bugs, extendable per-install via
add_field_valuesdirectly ontask.status(ADR-076,Accepted), not a per-schemamaps_toextension the way Linear'sissueneeded.
bug (extends: task):
severity— enum (critical/major/minor/trivial), a genuinely distinct axis frompriority(severity = how bad the defect is; priority = how urgently to fix it — two separate fields in real Jira).environment—field_type: "string", free text (prod/staging/browser+OS version). Inherently open-ended, not enumerable.- Relationship:
bug.sprint/sprint.bugs - Same status-vocabulary reasoning as
story: no per-schema extension needed.
epic (extends: task):
target_date—field_type: "date".- Relationships to child issues: three parallel Many/One declarations, not one —
SchemaRelationship.target_typeis a single type (Option<String>, confirmed via direct inspection ofpackages/nodespace-types/src/schema.rs), so one relationship cannot target "any of task/story/bug." Mirrorsproject.tasks's existing shape exactly (Many/One, non-hierarchical — Epic groups issues via a flat reference field, the same way real Jira's "Epic Link" works, not viahas_childnesting):epic.tasks/task.epicepic.stories/story.epicepic.bugs/bug.epic
- Deliberately not
has_child—has_childstays reserved for genuine outline/sub-task nesting (see Sub-issues below); Epic membership is Jira's flat "Epic Link" field concept, a different relationship in kind, not depth.
sprint (schema-only, no extends — mirrors cycle's existing shape from the Linear recipe):
start_date— anticipated start (Jira'sstartDatesemantics: can be a future date, can shift before the sprint starts).end_date— anticipated end (Jira'sendDate: "the date you anticipated closing the sprint at the time you started it" — distinct from the actual close time).completed_date— actual completion timestamp, set only on transition toclosed, never hand-edited by a user (mirrorstask.completed_at's existing "set on status transition" pattern).goal—field_type: "string", short free-text sprint objective. One of the few fields real Jira leaves editable even after a sprint closes.sprint_status— enum (future/active/closed). Namedsprint_status, notstatus, deliberately: avoids the same kind of same-field-different-meaning collision flagged and resolved during this recipe's design fortask/issue_type(where reusing a baretypefield risked colliding in meaning with the coretaskschema name itself).- Relationships:
sprint.tasks/sprint.stories/sprint.bugs, each Many/Many (not Many/One) — a task can move between sprints over its lifetime (Jira explicitly supports moving issues in/out of sprints), so a strict one-sprint-ever constraint would be incorrect, even though in practice an issue is actively in at most one open sprint at a time.
Sub-issues / Sub-tasks
No new schema. A sub-task is simply any task/story/bug node nested under another via the existing, universal has_child relationship — identical treatment to the Linear recipe's sub-issues, confirmed free (no schema or relationship work required). No depth-limiting mechanism is introduced (considered and explicitly rejected during design — nothing in NodeSpace's existing has_child usage needs or benefits from a "sub-task cannot have sub-tasks" restriction; that is a Jira UI/product convention, not a data-integrity concern, and enforcing it would be unjustified scope creep with no consuming Play or query depending on it).
Plays
1. Sprint state-transition validation (Invariant-class) — mirrors the real Jira Sprint API's own transition rules (confirmed via Atlassian's REST API documentation):
- Transitioning
sprint_statustoactiverequires the sprint currently befuture, and requires bothstart_dateandend_datealready set. - Transitioning
sprint_statustoclosedrequires the sprint currently beactive. On this transition,completed_dateis set to the current time (an action side-effect, not a user-editable value). - Any other
sprint_statustransition (e.g.closed→active) is rejected.
2. Sprint close-lock (Invariant-class) — once sprint_status == closed, reject writes to start_date, end_date, sprint_status itself (other than the transition already covered above), and relationship membership changes (sprint.tasks/sprint.stories/sprint.bugs) — mirrors Jira's own documented rule that a closed sprint only accepts edits to name (content) and goal, silently ignoring changes to everything else.
3. Reuse of the existing core auto-complete-parent Play (#2636) — no new work; applies to Jira-style task/story/bug nesting exactly as it does to Linear's issue nesting, since it is explicitly methodology-agnostic (has_child + status-category only).
Both new Plays (1 and 2) are RuleClass::Invariant. The engine-level machinery both depend on — a reject/veto action type and synchronous in-transaction execution of Invariant rules — has landed (#2642, #2643, both merged); what remains blocking is extends (#2598, for story/bug/epic to exist at all) and reverse relationship traversal (#2638→#2641, needed by the validation conditions themselves, a separate concern from the reject/execution machinery).
Seeded skills for post-install usage guidance
Distinct from schema/Play definitions above: once epic/sprint/story/bug exist and their Plays are active, any agent (local or external — both reach seeded skill nodes via the existing find_skills/routing mechanism, ADR-038/ADR-057) needs guidance on using them correctly — the system-wide, cross-schema narrative #2653's schema-description plumbing cannot provide by itself (see Problem Statement). This is ordinary recipe content, not new core infrastructure, exactly as in #2596: skill is already a core schema, PlaybookNode.seed_node_ids (ADR-075) already tracks exactly this, and find_skills already discovers whatever skill nodes exist regardless of who authored them.
Seed several small, narrowly-scoped skills — not one broad "Jira methodology" skill — mirroring the existing 11 core skills' own shape and #2596's identical approach for its Linear-style sibling:
- "Creating Epics, Stories, and Bugs" — when to use
storyvs.bugvs. plaintask,story_pointsvs.severity/environment, that Epic membership isepic.stories/epic.bugs/epic.tasks(a flat reference), nothas_childnesting. - "Working with Sprints" — the
future→active→closedlifecycle, what triggers each transition, that a closed sprint only acceptscontent/goaledits. - "Sprint and Epic Validation Rules" — what the two Sprint Invariant Plays reject and why, so an agent understands a rejected write (e.g. attempting to reopen a closed sprint) rather than treating it as a bug.
Exact skill count/boundaries decided during implementation; the above is illustrative, not exhaustive.
Implementation Approach
This recipe is delivered entirely as a packages/desktop-app/src/lib/methodology-recipes/jira.ts canonical step array, per the recipe mechanism #2596 defines — not bespoke implementation code. This issue's schemas, relationships, Plays, and skills are all create_schema/update_schema/create_play/create_skill steps in that file, using #2596's step shapes:
{op: 'create_schema', payload: {...}}—story,bug,epic,sprint{op: 'add_field_values', payload: {...}}— any Sprint/Story/Bug status-vocabulary extension a specific install wants (optional, not seeded by default per Non-Goals){op: 'create_play', payload: {...}}— both Sprint Invariant Plays{op: 'create_skill', payload: {...}}— the three seeded skills above
This issue does not implement the step-array mechanism, the GUI onboarding/Settings wiring, the generator script, or the SKILL.md pointer entry — those are #2596's scope, built once and shared by every recipe. This issue is a consumer of that mechanism, contributing the jira.ts recipe file, its generated packages/skill/references/jira-recipe.md, and its onboarding wizard picker option ("Jira-style," already named in #2596's wizard step enumeration).
Architecture Impact
This recipe's schemas and Plays depend directly on ../nodespace-docs/decisions/078-schema-extends-relationship-for-field-composition.md (ADR-078, extends) and ../nodespace-docs/decisions/076-schema-field-value-extension-and-task-status-enforcement.md (ADR-076, add_field_values, now Accepted) exactly as the Linear recipe does — no new ADR content is required beyond what already exists for those two mechanisms; this issue is a consumer, not a reversal or extension of either decision. ../nodespace-docs/decisions/075-playbooknode-installable-bundle-record.md (ADR-075) governs this recipe's install/bundle-tracking shape, also unchanged by this issue. The seeded-skills addition above is consistent with ADR-057 (skill nodes as ordinary markdown-child root nodes) and ADR-038 (skill-mediated discovery) — no changes to either mechanism, just new content authored against them.
Acceptance Criteria
-
story,bug,epicschemas defined as specified, eachextends: task -
sprintschema-only type defined as specified -
epic.tasks/epic.stories/epic.bugs(Many/One) andsprint.tasks/sprint.stories/sprint.bugs(Many/Many) relationship pairs declared - Sub-task nesting works via plain
has_child, no new schema or relationship - Sprint state-transition Invariant Play enforces
future→active→closed, rejecting invalid transitions, settingcompleted_dateon close - Sprint close-lock Invariant Play rejects mutation of
start_date/end_date/sprint_status/relationship membership oncesprint_status == closed, whilecontent/goalremain editable - Seed a core Play that completes a parent task when all its children are done #2636's auto-complete-parent Play confirmed to apply unmodified to this recipe's types
-
story_points(number),severity/environment(bug),target_date(epic) all validate correctly - Several narrow, task-scoped
skillnodes seeded as recipe content (e.g. "Creating Epics, Stories, and Bugs," "Working with Sprints," "Sprint and Epic Validation Rules" — not one monolithic skill), authored as markdown files underpackages/core/src/methodology/skills/jira/, mirroring the shipped Linear Playbook'sskills/linear/*.mdpattern (PlaybookNode.seed_node_idstracking does not apply — that mechanism, Implement PlaybookNode as installable bundle record with display identity #2570, remains unimplemented/deferred and is unrelated to how this recipe's skills are seeded) - All of the above expressed as a
MethodologyPlaybookinpackages/core/src/methodology/jira.rs, per the shipped Linear Playbook's real implementation pattern (packages/core/src/methodology/linear.rs) — note: this issue's original text described a TypeScriptjira.tsstep array underpackages/desktop-app/src/lib/methodology-recipes/, per Add methodology recipe mechanism (TS source, generated CLI reference doc) with Linear-style as first recipe #2596's original pre-implementation design. That design was superseded by the real, shipped Rust implementation (packages/core/src/methodology/, PR Add the Linear-style methodology recipe, installable from onboarding or Settings (closes #2596) #2777) — this line corrects that stale reference. - At least one default view seeded (
MethodologyPlaybook.views, per Seed default views (Kanban/list/table QueryNodes) as part of a Playbook install #3135) — e.g. an Epics/Stories/Bugs-by-status Kanban board; note a Sprint board filtered by the sprint's ownsprint_statusneeds Add cross-relationship QueryFilter: filter nodes by a related node's own properties #3137 (cross-relationshipQueryFilter) first, so may need to be scoped to same-node-property filters or deferred - "Jira-style" onboarding wizard/Settings option installs this Playbook via the shared
install_playbookexecution path - Tests pass (
bun run test:all) - Code passes
bun run quality:fix
Technical Specifications
Reference Files
packages/core/src/models/core_schemas.rs—taskschema (unmodified base),project.tasks(~line 371-381, the Many/One relationship shapeepic.*mirrors),person.tasks/assignee(~line 1258-1340)packages/nodespace-types/src/schema.rs—SchemaRelationship(target_type: Option<String>, confirms the three-parallel-relationship requirement for bothepicandsprint)packages/core/src/playbook/types.rs—RuleClass::Invariantpackages/agent/src/skill_pipeline.rs(seed_skill_nodes, ~line 357) — the existing 11-skill seeding pattern this recipe's own seeded skills follow (narrow, task-scoped, markdown children per ADR-057), same precedent Add methodology recipe mechanism (TS source, generated CLI reference doc) with Linear-style as first recipe #2596 uses../nodespace-docs/decisions/078-schema-extends-relationship-for-field-composition.md—extends, field composition../nodespace-docs/decisions/076-schema-field-value-extension-and-task-status-enforcement.md—add_field_values, the mechanism Sprint/Story/Bug status-vocabulary extension (if a specific Jira-style install wants custom workflow states) would use, same as Linear../nodespace-docs/decisions/057-skill-node-markdown-children.md(ADR-057),../nodespace-docs/decisions/038-skill-mediated-tool-routing.md(ADR-038) — skill-node shape and discovery mechanism the seeded skills above are authored against
Dependencies
- Implement extends schema relationship with real node_type subtype identity #2598 (
extendsimplementation) — required forstory/bug/epicto exist at all astask-extending schemas - Add core blocks/blocked_by, relates_to/duplicates, and creator relationships on task #2637 (core
blocks/relates_to/creator relationships ontask) — Reporter and blocking-relationship support this recipe relies on, same as Linear - Expand core task.priority to a 5-level scale (Highest/High/Medium/Low/Lowest) #2651 (core
task.priority5-level scale) — this recipe's Priority field assumes the 5-level scale is already core, not something it extends itself - Seed a core Play that completes a parent task when all its children are done #2636 (core auto-complete-parent Play) — reused as-is by this recipe's sub-task/sub-issue completion behavior
(#2596, the original Playbook-mechanism design issue, is no longer listed as a dependency — it's closed, superseded by the real shipped implementation in packages/core/src/methodology/ this recipe targets directly.)
Related Issues
- The shipped Linear-style Playbook (
packages/core/src/methodology/linear.rs, PR Add the Linear-style methodology recipe, installable from onboarding or Settings (closes #2596) #2777) — sibling Playbook, same design pattern, explicitly not intended to be installed simultaneously with this one; both independently declare their own schemas (e.g. both may define anissue-shaped concept under different names —issuefor Linear, this recipe usestask/story/bugdirectly instead) with no source-level collision, confirmed during design (schema uniqueness is enforced only per-installed-database, not globally across source-defined Playbooks) - Seed default views (Kanban/list/table QueryNodes) as part of a Playbook install #3135 (seed default Playbook views) — this recipe gains a view-seeding acceptance criterion from it
- Add cross-relationship QueryFilter: filter nodes by a related node's own properties #3137 (cross-relationship
QueryFilter) — needed for a Sprint-scoped board view, see Acceptance Criteria
Non-Goals
- Sprint velocity/burndown reporting or any cross-sprint aggregation — no aggregation primitive exists yet (see Add collection-aggregation action to the playbook engine (sum/count over a for_each collection) #2639, filed for Linear's cycle-estimate-totals gap, which would be the same underlying dependency if this recipe wants Sprint-level point totals in the future)
- Board/swimlane UI, backlog ranking/ordering — data-layer and Play definitions only, consistent with this recipe's Linear-style sibling
- Custom Jira workflow schemes beyond the default To Do/In Progress/Done — a specific install may extend
task.statusviaadd_field_valuesas needed; this issue does not seed any non-default status vocabulary
Activity
malibio commentedon Sep 16, 2026
Design finalized this session, mirroring the Linear-style recipe's process. Set to Blocked rather than Backlog because implementation genuinely cannot begin until its tracked dependencies land — most immediately #2598 (
extends), sincestory/bug/epiccannot exist as schemas without it. #2642/#2643 (Invariant reject + synchronous execution) block both Sprint Plays specifically; #2637/#2651/#2636 are already-filed core prerequisites this recipe consumes as-is.#2598 landing is the minimum trigger to begin schema-only work on this recipe (story/bug/epic definitions), same as it is for #2596.
malibio commentedon Sep 16, 2026
Infrastructure update: #2642 (reject action type) and #2643 (synchronous Invariant execution) are now merged (#2644, #2650 respectively) and removed from this issue's Dependencies list — both Sprint Plays' reject/execution machinery is now available. Remaining hard blockers: #2598 (
extends, required for story/bug/epic to exist at all), #2637 (Reporter/blocking relationships), #2651 (priority 5-level scale).malibio commentedon Sep 26, 2026
Unblocking: all four named dependencies are now closed (#2598 extends implementation, #2637 blocks/relates_to/creator relationships, #2651 priority 5-level scale, #2636 auto-complete-parent Play). Moving to Backlog — ready to implement, no remaining infrastructure blockers.
malibio commentedon Sep 27, 2026
Frontend: 278 files / 5396 tests passed
Add Jira-style methodology playbook (closes #2652)
Add Jira-style methodology playbook (closes #2652)
Add Jira-style methodology playbook (closes #2652)