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

URL: https://goingstellar.ro/reference/confluence-storage-format/task-lists/

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

```xml
<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:

```xml
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}
```

```json
{
 "type": "doc",
 "content": [
  {
   "type": "taskList",
   "attrs": {},
   "content": [
    {
     "type": "taskItem",
     "attrs": {
      "state": "TODO"
     },
     "content": [
      {
       "text": "Write tests",
       "type": "text"
      }
     ]
    }
   ]
  }
 ],
 "version": 1
}
```

## Examples

Storage format sent:

```xml
<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):

```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:

```xml
<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 29 Nov 2026.

Storage format sent:

```xml
<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):

```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:

```xml
<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 29 Nov 2026.

Storage format sent:

```xml
<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):

```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:

```xml
<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 29 Nov 2026.

Storage format sent:

```xml
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):

```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:

```xml
<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 29 Nov 2026.

## 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.

## Related

- [<ul> and <ol> lists](https://goingstellar.ro/reference/confluence-storage-format/bullet-numbered-lists/)
- [<time> dates](https://goingstellar.ro/reference/confluence-storage-format/dates/)
- [User links and mentions](https://goingstellar.ro/reference/confluence-storage-format/user-links-mentions/)
- [Reporting macros (content by label, recently updated, attachments...)](https://goingstellar.ro/reference/confluence-storage-format/report-macros/)

## Sources

- [Confluence storage format (Atlassian Documentation)](https://confluence.atlassian.com/doc/confluence-storage-format-790796544.html)
- [Atlassian Document Format: document structure (Atlassian Developer)](https://developer.atlassian.com/cloud/jira/platform/apis/document/structure/)
- [Insert the task report macro (Atlassian Support)](https://support.atlassian.com/confluence-cloud/docs/insert-the-task-report-macro/)

