Task Report macro does not exclude empty tasks when using search index

XMLWordPrintable

    • 1
    • Severity 3 - Minor

      Issue Summary

      The Task Report macro incorrectly displays tasks with empty body content when results are served from the Lucene/Opensearch search index. When the dark feature confluence.task-report.use-database-for-reports is enabled (forcing database queries instead of index queries), empty tasks are not displayed — confirming this is an index-specific rendering/filtering issue.

      Steps to Reproduce

      1. Create a page with inline tasks, including at least one task with no body content (empty task).
      2. Add a Task Report macro to another page (or the same page), configured to show incomplete tasks.
      3. Ensure confluence.task-report.use-database-for-reports dark feature is not enabled (default).
      4. View the page containing the Task Report macro.

      Expected Results

      The task report macro does not display empty tasks after publishing.

      Actual Results

      Empty tasks (tasks with no body text) appear in the Task Report macro output when results are sourced from the index.

      Workaround

       If we add the below dark feature, it works as expected:

      1. Navigate to <confluence-url>/admin/darkfeatures.action
        • In the Enable dark feature box, add:
          • confluence.task-report.use-database-for-reports
        • Click Submit

        1. image-2025-05-28-16-59-05-149.png
          185 kB
          Jeffery Xie
        2. image-2025-05-28-16-59-27-367.png
          149 kB
          Jeffery Xie

              Assignee:
              Jeffery Xie
              Reporter:
              Cihan (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: