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


> Macro (excerpt)
> 
> > ❌ Similar content but different to [Page activity macro](https://appfire.atlassian.net/wiki/spaces/CDML/pages/650315245)

## Overview

> Macro (excerpt)
> 
> Embed Activity Report in wiki content

The `pageactivity` macro displays a workflow "Activity Report" directly within wiki content.

The report is similar to what you see when you access the Activity Report from the [workflow popup](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649659846).

When using [Same-space publishing](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649794062), only the entries up to the most recently published version of content will be shown.

## Where to use it?

Optional.

One or more `pageactivity` macros can be used in the following locations:

- pages and blog posts – see: [Activity Report - Content](https://appfire.atlassian.net/wiki/spaces/CDML/pages/650119122)
- email notifications – in the macro body of the [send-email macro](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649924039)
- message notifications – in the macro body of the [set-message macro](https://appfire.atlassian.net/wiki/spaces/CDML/pages/650153597)
- content headers and footers – see:
  - `header` and `footer` parameters of the [workflow macro](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649662219)
  - [pageheader macro](https://appfire.atlassian.net/wiki/spaces/CDML/pages/650348817) and [pagefooter macro](https://appfire.atlassian.net/wiki/spaces/CDML/pages/650251276)
- [Page Blueprints](https://confluence.atlassian.com/doc/blueprints-323982376.html)

## Permissions

When used on a page without a workflow, all users can see the report (it will list page creation, edits, etc).

When used on a page with an unrestricted workflow (which does not define any `final=true` states), all users will be able to see the report.

When used on a page with a workflow which uses [Same-space publishing](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649794062) (one which defines a `final=true` state):

- Edit/Admin users will see the full report
- View only users will only see entries up to the point at which the most recent published (`final=true`) state was *entered*
- If the page has not yet reached a published state, view-only users won't be able to view the page or the report

## Parameters

| **Parameter** | **Required** | **Default** | **Notes** |
| --- | --- | --- | --- |
| `maxentries` |  | *all entries shown* | Maximum number of entries to show |
| `ascending` |  | `false` | Which order should the entries be shown in?<br>- `true` – oldest → newest
- `false` – newest → oldest |

## Example

The following adds a page activity report with the five most recent entries.

```plaintext
{pageactivity:maxentries=5}
```

Or use the macro editor:

<span style="color: #ffffff">o</span>> Macro (inline-media-image)



On the page, this displays a chronological list of the page activity.

<span style="color: #ffffff">o</span>> Macro (inline-media-image)

  


Columns can be set to be sorted in reverse date order when editing the macro.

## All examples

> Macro (contentbylabel)

## See also

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

- [pagestatus macro](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649694558)
- [workflow-report macro](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649891099)
- [Event references](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649925434) – `@pageactivity@`

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

- [Page Activity - page tools](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649661765)
- [Activity report - workflow state dialog box](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649858368)

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

- [Activity Report - Content](https://appfire.atlassian.net/wiki/spaces/CDML/pages/650119122)