Skip to content

jira issue create

  • Usage: jira issue create [flags]

Create a Jira issue from convenience flags, profile defaults, or a JSON payload. Use flags for common fields, --markdown for a Markdown description, and --json-input for full Jira field objects, custom fields, or rich ADF descriptions.

Create requests run through the validate-and-encode mutation pipeline before submission. --dry-run performs local parsing, alias normalisation, ADF validation, and preview rendering without resolving credentials or contacting Jira.

Headless --no-input needs complete input from flags, JSON, or profile defaults: project, issue type, and summary must all be known before the command can submit.

Fields

--assignee <USER>

Assign on creation: me, an email, or a Jira account ID

Allowed values:

  • me — current user

--label <NAME>…

Label to attach (repeatable)

--parent <KEY>

Parent issue key (for a subtask or epic child)

--priority <NAME>

Priority name

--project <KEY>

Project key (overrides the profile default)

--summary <TEXT>

Issue summary

--type <NAME>

Issue type name (overrides the profile default)

Input

--json-input <FILE>

Read issue create payload from JSON file (canonical for agents)

Accepts a file.

--markdown <MARKDOWN>

Issue description as Markdown (lossy convenience layer, converted to ADF)

--markdown-file <FILE>

Read the Markdown body from a file; - reads stdin

Accepts a file.

Safety

--dry-run

Preview mutation without submitting

Validation

--validate-remote

With --dry-run, validate against the live create screen (read-only createmeta fetch)

Output fields

With --output json, the response envelope's data object carries these fields. Run jira schema for the full machine-readable schema.

Field Type Description
dry_run boolean
issue object Present on non-dry-run success.
preview object Present on --dry-run; carries the would-be payload after Markdown→ADF.

Examples

jira issue create --project PROJ --type Task --summary "Fix the build"
jira issue create --project PROJ --type Bug --summary "Crash on startup" --assignee me --label regression # (1)!
jira issue create --project PROJ --type Task --summary "Draft" --dry-run # (2)!
jira issue create --project PROJ --type Task --summary "Fix" --markdown "## Steps\n\n1. Repro" # (3)!
jira issue create --json-input issue-create.json --dry-run --output=json # (4)!
  1. Create a bug assigned to you with a label
  2. Preview the create payload without contacting Jira
  3. Create with a Markdown description (converted to ADF client-side)
  4. Preview a full JSON payload for an agent