Skip to content

Add methodology recipe: Jira-style work tracking (Epic/Story/Bug hierarchy, Sprints) #2652

Closed

Description

@malibio

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 (see sprint below)
  • 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_values directly on task.status (ADR-076, Accepted), not a per-schema maps_to extension the way Linear's issue needed.

bug (extends: task):

  • severity — enum (critical/major/minor/trivial), a genuinely distinct axis from priority (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_type is a single type (Option<String>, confirmed via direct inspection of packages/nodespace-types/src/schema.rs), so one relationship cannot target "any of task/story/bug." Mirrors project.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 via has_child nesting):
    • epic.tasks/task.epic
    • epic.stories/story.epic
    • epic.bugs/bug.epic
  • Deliberately not has_child — has_child stays 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's startDate semantics: can be a future date, can shift before the sprint starts).
  • end_date — anticipated end (Jira's endDate: "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 to closed, never hand-edited by a user (mirrors task.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). Named sprint_status, not status, deliberately: avoids the same kind of same-field-different-meaning collision flagged and resolved during this recipe's design for task/issue_type (where reusing a bare type field risked colliding in meaning with the core task schema 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_status to active requires the sprint currently be future, and requires both start_date and end_date already set.
  • Transitioning sprint_status to closed requires the sprint currently be active. On this transition, completed_date is set to the current time (an action side-effect, not a user-editable value).
  • Any other sprint_status transition (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 story vs. bug vs. plain task, story_points vs. severity/environment, that Epic membership is epic.stories/epic.bugs/epic.tasks (a flat reference), not has_child nesting.
  • "Working with Sprints" — the future→active→closed lifecycle, what triggers each transition, that a closed sprint only accepts content/goal edits.
  • "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, epic schemas defined as specified, each extends: task
  • sprint schema-only type defined as specified
  • epic.tasks/epic.stories/epic.bugs (Many/One) and sprint.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, setting completed_date on close
  • Sprint close-lock Invariant Play rejects mutation of start_date/end_date/sprint_status/relationship membership once sprint_status == closed, while content/goal remain 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 skill nodes 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 under packages/core/src/methodology/skills/jira/, mirroring the shipped Linear Playbook's skills/linear/*.md pattern (PlaybookNode.seed_node_ids tracking 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 MethodologyPlaybook in packages/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 TypeScript jira.ts step array under packages/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 own sprint_status needs Add cross-relationship QueryFilter: filter nodes by a related node's own properties #3137 (cross-relationship QueryFilter) 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_playbook execution path
  • Tests pass (bun run test:all)
  • Code passes bun run quality:fix

Technical Specifications

Reference Files

  • packages/core/src/models/core_schemas.rs — task schema (unmodified base), project.tasks (~line 371-381, the Many/One relationship shape epic.* 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 both epic and sprint)
  • packages/core/src/playbook/types.rs — RuleClass::Invariant
  • packages/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

(#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

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.status via add_field_values as needed; this issue does not seed any non-default status vocabulary

Activity

  1. malibio commented on Sep 16, 2026

    @malibio
    CollaboratorAuthor

    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), since story/bug/epic cannot 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.

  2. malibio commented on Sep 16, 2026

    @malibio
    CollaboratorAuthor

    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).

  3. malibio commented on Sep 26, 2026

    @malibio
    CollaboratorAuthor

    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.

  4. malibio commented on Sep 27, 2026

    @malibio
    CollaboratorAuthor

    Frontend: 278 files / 5396 tests passed

  5. self-assigned this
    on Sep 27, 2026
  6. added 3 commits that reference this issue on Sep 27, 2026
    466a610
    b3a4cbf
    181d17e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions