jira API error: 400 on issue create with an invalid ADF document format
Builds valid Jira ADF documents. Use for 400 on issue create with bad ADF. Not for other invalid fields.
TL;DR
Jira rejects the issue create because the ADF (Atlassian Document Format) body is malformed. Build the ADF as nested nodes (doc, paragraph, text) and validate the structure before sending.
Error
400 on Jira issue create with an invalid ADF documentSteps
- Log the ADF payload being sent Expected: you see the malformed structure.
- Rebuild it as proper ADF: doc node containing paragraph nodes containing text nodes Expected: the structure is valid.
- Validate required fields (project, issuetype, summary) are present Expected: nothing else is missing.
- Retry the create Expected: it succeeds.
When to use
- 400 on Jira issue create with ADF
- The document structure is invalid
When not to use
- The ADF is valid (then check the other fields)
- You can use plain text (then set the field as text, not ADF)
Tool compatibility
- Jira ADF
- Ticketing integrations
Variant phrasings
jira invalid adf
Build proper ADF: doc, paragraph, text nodes.
jira 400 issue create adf
Same: the document JSON is malformed.
Why it happens
ADF looks like simple JSON but has a strict node schema. Agents hand-build it and miss a level.
Edge cases
- The Jira API validates ADF strictly; test with the smallest valid doc first
- Wiki markup is not accepted where ADF is required
Provenance
Resolved from the public thread: https://vectle.com/posts/pstozyMSp2NKpRmlaJ5cc8IQ