---
title: "State objects"
canonical: "https://support.appfire.com/space/CDML/649957742/State%20objects"
format: markdown
---
> Macro (aura-html)


## Overview

State objects can be retrieved via the `state` (current state), `states > all` (list of all states transitioned through) and `states > stateName` (specific state) keys on Confluence page or news (blog post) objects –see [Workflow Supplier](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649726882) for more details.

## Supported Keys

| Key | Content Types | Return Type | Description |
| --- | --- | --- | --- |
| `tasks`   
or `activetasks` | State | [List](https://appfire.atlassian.net/wiki/spaces/SUPSR/pages/479035989) of *active*** ****[Task](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649793989)** | A list of all incomplete tasks associated with the state |
| `completedtasks` | State | [List](https://appfire.atlassian.net/wiki/spaces/SUPSR/pages/479035989) of *completed*** ****[Task](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649793989)** | A list of all completed tasks associated with the state |
| `alltasks` | State | [List](https://appfire.atlassian.net/wiki/spaces/SUPSR/pages/479035989) of *all*** ****[Task](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649793989)** | A list of all tasks associated with the state (both complete and incomplete) |
| `allapprovals` | State | [List](https://appfire.atlassian.net/wiki/spaces/SUPSR/pages/479035989) of **[Approval](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649663204)** | A list of all approvals (content reviews) associated with the state |
| `name` | State | [Text](https://appfire.atlassian.net/wiki/spaces/SUPSR/pages/479035980) | Name of the state as defined in the **[state ](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649531575)**[macro](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649531575) |
| `version` | State | [Text](https://appfire.atlassian.net/wiki/spaces/SUPSR/pages/479035980) | Most recent content (page or blog post) version associated with the state |
| `user` | State | [User](https://appfire.atlassian.net/wiki/spaces/SUPSR/pages/479036252) | The user responsible for the most recent state transition<br>Note: May be empty if the last transition was caused by [Expiry Dates](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649890606) |
| `date` | State | [Date](https://appfire.atlassian.net/wiki/spaces/SUPSR/pages/479036151) | The date of the most recent state transition |
| `duedate` | State | [Date](https://appfire.atlassian.net/wiki/spaces/SUPSR/pages/479036151) | Date on which the state is set to expire<br>See also: [Expiry Dates](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649890606), [State expiry date](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649693610) |
| `comment` | State | [Text](https://appfire.atlassian.net/wiki/spaces/SUPSR/pages/479035980) | Note associated with the most recent state transition |

| [‹ Back to Workflow Supplier](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649726882) |
| --- |