---
title: "approve-children macro"
canonical: "https://support.appfire.com/space/CDML/649531735/approve-children%20macro"
format: markdown
---
> Macro (aura-html)


## Overview

> Macro (excerpt)
> 
> Approve approvals on child pages

The `approve-children` macro is used to approve a specific approval, where active, on all child pages of the page where the action was triggered.

## Where to use it?

Optional.

One or more `approve-children` macros can be put in a [trigger macro](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649859133).

## Parameters

| **Parameter** | **Required** | **Default** | **Notes** |
| --- | --- | --- | --- |
| *unnamed first parameter* | :check_mark: |  | Name of the approval to approve.<br>> ℹ️ Only applies to child pages where there is an active approval of that name. |
| **comment** |  |  | Approval comment<br>- plain text<br>> ℹ️ Able to use any character set supported by your Confluence server *except for some* [reserved characters](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649859070). |
| **state** |  |  | State in which the child page must be in order to be approved. |

> 📝 The `approve-children` macro does not work if the page is using also using the [K15t Scroll Versions app](https://appfire.atlassian.net/wiki/spaces/CDML/pages/650153358).

## Events

The following [events](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649759655) are associated with approvals

- `newsapproved`
- `pageapproved`

## Example

```plaintext
{workflow:name=Approve Children}
   {state:Editing|submit=Content Review}
   {state}
   {state:Content Review|approved=Published|rejected=Editing}
   {approval:Review}
   {state}
   {state:Published}
   {state}
   {trigger:pageapproved|approval=Review}
      {approve-children:Review|comment=Parent approval approved|state=Content Review}
   {trigger}
{workflow}
```

##   
Events with anonymous users

> ℹ️ The `approve-children` macro does work with events that are ascribed by the workflow to an **anonymous user**. For example the `stateexpired` event.

![image](media://a8da5e46-2c61-4a3a-bca4-7f53da64f331)

## See also

[Workflow Authoring Guide](https://appfire.atlassian.net/wiki/spaces/CDML/pages/648611901)

- [Reviews](https://appfire.atlassian.net/wiki/spaces/CDML/pages/650153766)
- [States](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649595551)
- [Transitions](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649563425)
- [Events](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649759655)
- [Triggers](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649563178)
- [Actions](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649858941)

[Reporting Guide](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649070833)

- [Workflow Report Macro - Approvals](https://appfire.atlassian.net/wiki/spaces/CDML/pages/650120822)