Task Report Macro not working on some spaces

Platform Notice: Data Center Only - This article only applies to Atlassian apps on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Problem

Task report macro not rendering tasks list, on some spaces although you have task list of incomplete tasks .

(Auto-migrated image: description temporarily unavailable)

Diagnostic Steps

First check the problematic space by running below query, make sure that returning SPACESTATUS column value is NULL

select * from SPACES where SPACEKEY = 'test';

(Auto-migrated image: description temporarily unavailable)

Cause

Task report macro renders task list embeded on the mentioned page/space id as resource on the macro paramters.

Since the space status is null so task report macro doesn't have resource to pull from task lists.

NULL SPACESTATUS breaks the Task Report Macro — the macro's underlying query uses WHERE SPACESTATUS <> 'ARCHIVED', and in SQL, NULL <> 'ARCHIVED' evaluates to UNKNOWN (not TRUE), causing those spaces to be excluded.

This mismatch (a space with a NULL SPACESTATUS) most commonly occurs after a partial space-archive/unarchive operation was interrupted, or after a site import/migration that didn't fully populate the column. If this affects multiple spaces, check for a pattern around the same migration or bulk-archive event before treating each occurrence as isolated.

Resolution

Please test changes first on a test environment before applying to Production.

Always take a backup of your database, confluence home and install directories.

  1. Stop Confluence

  2. Check the problematic space by running below query, make sure that returning SPACESTATUS column value is NULL

    select * from SPACES where SPACEKEY = 'test';

    Before running the UPDATE: Confirm the space is genuinely intended to be active. A NULL SPACESTATUS value (which this article addresses) is an anomalous state — distinct from 'ARCHIVED', which indicates a deliberate archival. If the diagnostic query in Step 2 returned SPACESTATUS = 'ARCHIVED' instead of NULL, the space was intentionally archived and should not be reactivated without confirming with the space owner. Only proceed with the UPDATE if SPACESTATUS is confirmed as NULL.

  3. Take a note of the spaceid from the previous query and use it to update spacestatus to 'CURRENT' status

    update spaces set spacestatus = 'CURRENT' where spaceid = '98306' ;
  4. Start Confluence

  5. Validate that the task report macro is working properly now

  6. Verify the change is reflected in the UI:

    1. Navigate to the affected space and confirm it loads normally — there should be no "Archived" banner displayed.

    2. Open the Space Directory (☰ > Spaces > Space directory) and confirm the affected space appears in the default list (archived spaces are hidden by default).

    3. Confirm the Task Report Macro on the page now renders the expected task list.

  7. If the space still appears archived or the macro does not render, re-check the SPACESTATUS value in the database and confirm Confluence was fully restarted (all nodes in a Data Center cluster).

Updated on July 24, 2026

Still need help?

The Atlassian Community is here for you.