Skip to content

CLI: ohno create missing --story option to assign tasks to stories #30

@JanJetze

Description

@JanJetze

Problem

The ohno create command does not have a --story option, making it impossible to assign a task to a story via the CLI.

Current options:

Usage: ohno create [options] <title>

Options:
  -t, --type <type>       Task type (feature, bug, chore, spike, test)
  --description <desc>    Task description
  -e, --estimate <hours>  Estimated hours
  -h, --help              display help for command

Expected Behavior

The CLI should support:

ohno create "My task" --story story-abc123

Similar to how ohno story create supports --epic <epic-id>.

Workaround

Currently the only way to assign tasks to stories is:

  1. Use the MCP tool create_task with story_id parameter
  2. Directly update the database: sqlite3 .ohno/tasks.db "UPDATE tasks SET story_id = 'story-xxx' WHERE id = 'task-xxx'"

Suggested Implementation

Add -s, --story <story-id> option to the create command.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions