Going Stellar

Home/Confluence storage format reference

Confluence storage format

<ac:task-list> task lists in Confluence storage format

A task list is an ac:task-list holding one ac:task per item, each with a status of incomplete or complete and a body. Confluence adds a task id and a task uuid on save and wraps the body in a placeholder span. The ADF side is taskList and taskItem with a state of TODO or DONE.

Storage format

<ac:task-list>
<ac:task>
<ac:task-status>incomplete</ac:task-status>
<ac:task-body>task list item</ac:task-body>
</ac:task>
</ac:task-list>

As ADF (Confluence Cloud)

The ADF that Confluence Cloud builds for:

ADF:{"content": [{"attrs": {"localId": "t1"}, "content": [{"attrs": {"localId": "t2", "state": "TODO"}, "content": [{"text": "Write tests", "type": "text"}], "type": "taskItem"}], "type": "taskList"}], "type": "doc", "version": 1}
{
 "type": "doc",
 "content": [
  {
   "type": "taskList",
   "attrs": {},
   "content": [
    {
     "type": "taskItem",
     "attrs": {
      "state": "TODO"
     },
     "content": [
      {
       "text": "Write tests",
       "type": "text"
      }
     ]
    }
   ]
  }
 ],
 "version": 1
}

Examples

Storage format sent

<ac:task-list><ac:task><ac:task-status>incomplete</ac:task-status><ac:task-body>task list item</ac:task-body></ac:task></ac:task-list>

An open task, written the way the storage format page shows it.

Rendered view (HTML)

<ul class="inline-task-list" data-inline-tasks-content-id="<page id>"><li data-inline-task-id="">task list item</li></ul>

Storage format after the round trip through ADF

<ac:task-list>
<ac:task>
<ac:task-id>1</ac:task-id>
<ac:task-uuid><id></ac:task-uuid>
<ac:task-status>incomplete</ac:task-status>
<ac:task-body><span class="placeholder-inline-tasks">task list item</span></ac:task-body>
</ac:task>
</ac:task-list>

Sent to Confluence Cloud on .

Storage format sent

<ac:task-list><ac:task><ac:task-status>complete</ac:task-status><ac:task-body>done item</ac:task-body></ac:task></ac:task-list>

A task that is already ticked, using the complete status.

Rendered view (HTML)

<ul class="inline-task-list" data-inline-tasks-content-id="<page id>"><li class="checked" data-inline-task-id="">done item</li></ul>

Storage format after the round trip through ADF

<ac:task-list>
<ac:task>
<ac:task-id>2</ac:task-id>
<ac:task-uuid><id></ac:task-uuid>
<ac:task-status>complete</ac:task-status>
<ac:task-body><span class="placeholder-inline-tasks">done item</span></ac:task-body>
</ac:task>
</ac:task-list>

Sent to Confluence Cloud on .

Storage format sent

<ac:task-list><ac:task><ac:task-status>incomplete</ac:task-status><ac:task-body>Call back <time datetime="2026-12-15" /></ac:task-body></ac:task></ac:task-list>

A task with a due date written as a time element inside the task body.

Rendered view (HTML)

<ul class="inline-task-list" data-inline-tasks-content-id="<page id>"><li data-inline-task-id="">Call back <time datetime="2026-12-15" class="date-future">15 Dec 2026</time></li></ul>

Storage format after the round trip through ADF

<ac:task-list>
<ac:task>
<ac:task-id>3</ac:task-id>
<ac:task-uuid><id></ac:task-uuid>
<ac:task-status>incomplete</ac:task-status>
<ac:task-body><span class="placeholder-inline-tasks">Call back <time datetime="2026-12-15" /></span></ac:task-body>
</ac:task>
</ac:task-list>

Sent to Confluence Cloud on .

Storage format sent

ADF:{"content": [{"attrs": {"localId": "t1"}, "content": [{"attrs": {"localId": "t2", "state": "TODO"}, "content": [{"text": "Write tests", "type": "text"}], "type": "taskItem"}], "type": "taskList"}], "type": "doc", "version": 1}

A task list sent as ADF with local ids, to see what storage Confluence writes for it.

Rendered view (HTML)

<ul class="inline-task-list" data-inline-tasks-content-id="<page id>"><li data-inline-task-id="4"><span class="placeholder-inline-tasks">Write tests</span></li></ul>

Storage format after the round trip through ADF

<ac:task-list ac:task-list-id="t1">
<ac:task>
<ac:task-id>4</ac:task-id>
<ac:task-uuid>t2</ac:task-uuid>
<ac:task-status>incomplete</ac:task-status>
<ac:task-body><span class="placeholder-inline-tasks">Write tests</span></ac:task-body>
</ac:task>
</ac:task-list>

Sent to Confluence Cloud on .

What changes in conversion

  • The status maps to the ADF state: incomplete is TODO and complete is DONE, and both directions are kept.
  • A save through ADF adds ac:task-id, ac:task-uuid and a span with the class placeholder-inline-tasks around the body text. The task text itself is unchanged.
  • The ADF localId values become the ac:task-uuid and the ac:task-list-id attribute when they are supplied. When ADF has none, the uuid is generated.
  • A time element in the body becomes an ADF date node and returns as a time element with the same datetime, so due dates in tasks round-trip.

Pitfalls

  • Task ids are assigned on save. In the runs they counted up from 1 across the page, and a task written without an id received the next number.
  • The rendered view is a ul with the class inline-task-list, so CSS or scripts that expect an ac:task element in the view will not find one.
  • ADF taskItem has only a state and an optional local id, so task assignment and the extra fields of the task report macro have no place in the ADF form that was tested.

Questions and answers

Can a task be assigned to someone in storage format?

The probes only covered tasks with text and a date. Assignment through a user link inside the task body was not tested.

Sources

  1. Confluence storage format (Atlassian Documentation)
  2. Atlassian Document Format: document structure (Atlassian Developer)
  3. Insert the task report macro (Atlassian Support)

Markdown version · All storage format pages