Or filter and user filter is not working in confluence 5.8.18

  • 1
  • Problem
  • Updated 3 years ago

We are upgrading to Confluence 5.8.18/Reporting 6.1.2/Scaffolding 8.1.2

I have a very simple report that worked find but in the previous version of confluence but is giving a "macro can't be used in this context error" . The report just provides a list of page users have either created or modified using the Or and user filters, below is the Source Editor


<ac:structured-macro ac:macro-id="4ab94654-480f-4e40-9733-d03a865970e8" ac:name="prettypanel" ac:schema-version="1">
  <ac:parameter ac:name="0">Please Read</ac:parameter>
  <ac:parameter ac:name="atlassian-macro-output-type">BLOCK</ac:parameter>
  <ac:rich-text-body>
    <p>The links below only list the pages that "you" have created, or last modified.</p>
  </ac:rich-text-body>
</ac:structured-macro>
<ac:structured-macro ac:macro-id="2756420f-b2c5-4170-978e-9d473a6b2d83" ac:name="report-table" ac:schema-version="1">
  <ac:rich-text-body>
    <ac:structured-macro ac:macro-id="8bcee923-ce09-45a9-8137-f1ccb1f08860" ac:name="local-reporter" ac:schema-version="1">
      <ac:parameter ac:name="source">Sales Funnel</ac:parameter>
      <ac:parameter ac:name="">children</ac:parameter>
      <ac:rich-text-body>
        <ac:structured-macro ac:macro-id="867acf6c-1c8e-4aa9-a097-7a6a882a9c75" ac:name="or-filter" ac:schema-version="1">
          <ac:rich-text-body>
            <p>
              <ac:structured-macro ac:macro-id="3bc630f3-bf5c-47ba-a74a-c6455503f851" ac:name="user-filter" ac:schema-version="1">
                <ac:parameter ac:name="user"/>
                <ac:parameter ac:name="">creator</ac:parameter>
              </ac:structured-macro>
            </p>
            <ac:structured-macro ac:macro-id="dfd8ef03-2ecf-43f7-997c-5ded824d073d" ac:name="user-filter" ac:schema-version="1">
              <ac:parameter ac:name="user"/>
              <ac:parameter ac:name="">content:modifier</ac:parameter>
            </ac:structured-macro>
          </ac:rich-text-body>
        </ac:structured-macro>
        <p> </p>
        <p> </p>
        <p>
          <ac:structured-macro ac:macro-id="649a0bd2-10b9-4289-8a53-86c4acbdf44e" ac:name="text-sort" ac:schema-version="1">
            <ac:parameter ac:name="">title</ac:parameter>
          </ac:structured-macro>
        </p>
        <p> </p>
        <p> </p>
      </ac:rich-text-body>
    </ac:structured-macro>
    <ac:structured-macro ac:macro-id="c2be6aa7-e46b-45b9-a586-c7da814f14e9" ac:name="report-column" ac:schema-version="1">
      <ac:parameter ac:name="title">Title</ac:parameter>
      <ac:rich-text-body>
        <p>
          <ac:structured-macro ac:macro-id="72531317-0b58-4032-a54a-d2c026967c43" ac:name="report-info" ac:schema-version="1">
            <ac:parameter ac:name="link">true</ac:parameter>
            <ac:parameter ac:name="">title</ac:parameter>
          </ac:structured-macro>
        </p>
      </ac:rich-text-body>
    </ac:structured-macro>
    <ac:structured-macro ac:macro-id="00be0ea2-115c-4e7e-ae34-e1dd50de4f74" ac:name="report-column" ac:schema-version="1">
      <ac:parameter ac:name="title">Last Modified Date</ac:parameter>
      <ac:rich-text-body>
        <p>
          <ac:structured-macro ac:macro-id="b9110f6a-d96f-449d-acff-975d9444d343" ac:name="report-info" ac:schema-version="1">
            <ac:parameter ac:name="format">MM-dd-yyyy</ac:parameter>
            <ac:parameter ac:name="">content:modification date</ac:parameter>
          </ac:structured-macro>
        </p>
      </ac:rich-text-body>
    </ac:structured-macro>
    <ac:structured-macro ac:macro-id="0e347df7-afd8-4586-99a7-cca8e0647789" ac:name="report-column" ac:schema-version="1">
      <ac:parameter ac:name="title">Last Modified By</ac:parameter>
      <ac:rich-text-body>
        <p>
          <ac:structured-macro ac:macro-id="47cf6131-9945-49dc-8d39-7923c30d70cf" ac:name="report-info" ac:schema-version="1">
            <ac:parameter ac:name="format">MM-dd-yyyy</ac:parameter>
            <ac:parameter ac:name="">content:modifier</ac:parameter>
          </ac:structured-macro>
        </p>
      </ac:rich-text-body>
    </ac:structured-macro>
  </ac:rich-text-body>
</ac:structured-macro>
<p> </p>
<p> </p>
<p> </p>




Photo of Martrice Denson

Martrice Denson

  • 112 Posts
  • 1 Reply Like
  • annoyed

Posted 3 years ago

  • 1
Photo of Sattesh Maran

Sattesh Maran

  • 8 Posts
  • 0 Reply Likes
Hey Martrice,

I'm new here and also to these tools, but I was wondering if I get your report to work by using the same version of tools you were using.

I'm on Confluence 5.7.1/Reporting 6.1.2/Scaffolding 8.1.1 and it says "This macro cannot be used in this context." as well.

Can please I know what version of Confluence/Reporting/Scaffolding you were on when the macros were working?

Thank you.

Regards,
Sattesh
(Edited)
Photo of Martrice Denson

Martrice Denson

  • 112 Posts
  • 1 Reply Like
Reporting 5.9
Photo of Sattesh Maran

Sattesh Maran

  • 8 Posts
  • 0 Reply Likes
Hey Martrice,

We do not have a version 5.9 for our reporting add-on. The last version before version 6.0.0 is Reporting 5.8.1. 

Could you please confirm the version of you reporting add-on and get back to me?

I would also need the version of the older Confluence instance  and the version of the scaffolding add-on when the add-on was working.

Thank you.

Regards,
Sattesh
Photo of Martrice Denson

Martrice Denson

  • 112 Posts
  • 1 Reply Like


Our current Prod versions are:


Confluence: 5.1.5


Scaffolding: 5.0.6 (bugs in later versions force us to stay on this specific version)


Reporting: 4.2.3

In testing it worked in for reporting 5.8.1, it is failing in 6.1.2


This is a very important macro for many of my reports.