Commandstask
ody task import
Import a task from Jira or GitHub
Synopsis
ody task import [--jira <ticket-or-url> | --github <issue-ref>] [--dry-run] [--verbose]Flags
| Flag | Alias | Type | Default | Description |
|---|---|---|---|---|
--jira | string | Jira ticket key (for example PROJ-123) or full ticket URL | ||
--github | --gh | string | GitHub issue URL or shorthand (owner/repo#123) | |
--dry-run | -d | boolean | false | Print the generated prompt without running the agent |
--verbose | boolean | false | Stream agent output in real time |
Exactly one source must be provided: use either --jira or --github.
Input Formats
Jira accepts:
- Full URL, for example
https://company.atlassian.net/browse/PROJ-123 - Ticket key shorthand, for example
PROJ-123
GitHub accepts:
- Full URL, for example
https://github.com/owner/repo/issues/123 - Issue shorthand, for example
owner/repo#123
Behavior
- Validates input and enforces exactly one source (
--jiraor--github). - Resolves source input into a canonical ticket/issue reference.
- Fetches issue data from Jira or GitHub.
- Converts the fetched issue into task import prompt content.
- Runs the configured backend agent to generate a
.code-task.mdfile. - Writes the generated task into
.ody/tasks/.
Dry run
Use --dry-run to print the generated import prompt without invoking the backend agent:
ody task import --jira PROJ-123 --dry-runAuthentication
Credentials must already be configured before importing tasks. Set up your provider profiles with ody auth, then run ody task import.
Example
Import from Jira using a ticket key:
ody task import --jira PROJ-123Import from Jira using a full ticket URL:
ody task import --jira https://company.atlassian.net/browse/PROJ-123Import from GitHub using shorthand:
ody task import --github owner/repo#123Import from GitHub using a full issue URL:
ody task import --github https://github.com/owner/repo/issues/123Preview without running the agent:
ody task import --github owner/repo#123 --dry-runStream backend output:
ody task import --jira PROJ-123 --verboseRelated
ody plan-- Create new task plansody task list-- View pending task filesody task edit-- Edit an existing task planody run-- Execute pending tasks with the agent loop