JIRA GUIDE 04 Rich-Text & Variable Engine
Jira Cloud v3 ADF & Dynamic Variables ({{var:...}}) Architecture Guide
h2., {code}, *bold*) that renders as raw unformatted characters in Jira Cloud REST v3. Neatpane TemplateGuard compiles clean Markdown-lite + dynamic variables directly into validated Atlassian Document Format (ADF v3) nodes.
1. Native Jira Cloud v3 ADF Compilation
Jira Cloud's v3 Issue and Service Desk Comment endpoints require structured JSON trees conforming to the Atlassian Document Format specification (version: 1, type: "doc"). Neatpane's compiler translates headings, bold/italic/inline code marks, fenced code blocks, bulleted/numbered lists, blockquotes, and validated https:// links into strict ADF nodes — and safely merges appended or prepended template content into existing issue descriptions without clobbering prior work.
2. Automatic Live Context Variable Catalog
Context variables resolve automatically at runtime from the active issue and authenticated user (api.asUser()):
- Issue Context:
{{issue.key}},{{issue.summary}},{{issue.status}},{{issue.priority}} - Project Context:
{{project.key}},{{project.name}} - People Context:
{{reporter.displayName}},{{assignee.displayName}},{{currentUser.displayName}} - Temporal Context:
{{now.date}}(YYYY-MM-DD),{{now.datetime}}(YYYY-MM-DD HH:mm UTC)
3. Interactive Prompt Variables with Default Fallbacks
Any token prefixed with var: automatically generates a typed input field inside the Issue Panel before execution. Add an optional pipe (|) to pre-populate a default value:
## Bug Reproduction — {{project.key}}
- **Reported By:** {{currentUser.displayName}} on {{now.date}}
- **Environment / Build:** {{var:Environment|Staging}} (`{{var:Release Tag|v2.4.0}}`)
- **Steps to Reproduce:** {{var:Reproduction Steps}}
- **Expected vs Actual:** {{var:Expected vs Actual Behavior}}
4. Resulting Jira REST v3 ADF Payload
Once all variables are resolved, Neatpane emits a strictly valid ADF document ready for PUT /rest/api/3/issue/{issueIdOrKey} or JSM comment creation:
{
"version": 1,
"type": "doc",
"content": [
{
"type": "heading",
"attrs": { "level": 2 },
"content": [{ "type": "text", "text": "Bug Reproduction — ENG" }]
},
{
"type": "bulletList",
"content": [
{
"type": "listItem",
"content": [
{
"type": "paragraph",
"content": [
{ "type": "text", "text": "Environment / Build: ", "marks": [{ "type": "strong" }] },
{ "type": "text", "text": "Staging (" },
{ "type": "text", "text": "v2.4.0", "marks": [{ "type": "code" }] },
{ "type": "text", "text": ")" }
]
}
]
}
]
}
]
}
Type into custom
{{var:...}} fields in our interactive simulator and watch Jira v3 ADF resolve instantaneously.Try Live Variable Simulator Full Variable Cookbook