Uploaded image for project: 'Atlassian Intelligence'
  1. Atlassian Intelligence
  2. AI-392

Page Properties macro with filter "Including text" won't correctly filter Strings that are placed outside of the Page Properties Macro

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Medium Medium
    • Search - Core
    • None
    • 8
    • Severity 3 - Minor

      Issue Summary

      Page Properties macro with filter "Including text" won't correctly filter Strings that are placed outside of the Page Properties Macro. Instead, the Page Properties Report will return all pages containing the string anywhere in the page.

      Steps to Reproduce

      1. Create two pages containing a Page Properties macro with the New Editor and add a label to them (e.g. 'test') - (Page 1, Page 2)
      2. On one of these pages add a string of text "TEST FOR FILTER" inside the Page Properties macro(Page1);
      3. On the other one add a string of text "TEST FOR FILTER" outside the Page Properties macro (Page2);
      4. Create a new page using the New Editor and add a page properties macro to report on pages using the label 'test'; (Parent Page);
      5. Edit the Page Properties Report macro -> add a filter "Including text" and report on the string 'TEST FOR FILTER', similar to the screenshot below: (Copy of Parent Page)
      6. Publish the page (Copy of Parent Page) and check the results returned by Page Properties Report.

      Expected Results

      • Parent Page to report on Page 1 as it is the only one containing the string 'TEST FOR FILTER' inside the Page Properties macro

      Actual Results

      • Parent Page reports both Page 1 and Page 2, even though only Page 1 has the 'TEST FOR FILTER' string inside the Page Properties Macro

      Workaround

      Currently, there is no known workaround for this behavior. A workaround will be added here when available

            [AI-392] Page Properties macro with filter "Including text" won't correctly filter Strings that are placed outside of the Page Properties Macro

            This has been wonky for quite some time, still cannot understand the principles behind the Including Text filter as it is programmed today. 

            Richard Couture added a comment - This has been wonky for quite some time, still cannot understand the principles behind the Including Text filter as it is programmed today. 

            Hi !

            We are facing a new challenge (bug??) using the page properties report :

             

            Page properties report "Including text" filter is not working properly.

            It will return all pages containing the specified text even if it is outside of the specified parameters.

             

            How to:

            Create 4 pages, each with a different title and each with the label "Tomato"

             

            Page1,

            insert a page property macro,

            insert a 2 column 2 row table in the page property macro

            Define heading named:  heading1, heading2

            Insert "Orange" under heading1

            Insert "Citrus" under heading2

            save page

             

            Page2,

            insert a page property macro,

            insert a 2 column 2 row table in the page property macro

            Define headings named:  heading1, heading2

            Insert "Citrus" under heading1

            Insert "Orange" under heading2

            save page

             

            Page3,

            insert a page property macro,

            insert a 2 column 2 row table in the page property macro

            Define heading named:  heading1, heading2

            Insert "Citrus" under heading1

            Leave a blank value under heading2

            Write "Orange" outside of the page property macro in the text section

            save page

             

            Page4,

            Write "Orange" in text section

            save page

             

            Create a page and insert a "Page property report" macro.

            In the "Labels" field, insert Tomato

            Add a "Including text" filter with the following filter: |heading1|Orange|

            Save macro.

            Save the page.

             

            Desired behaviour:

            The page property report should return only page1

             

            Current behaviour:

            The page property report returns pages 1-2-3.

             

            The way it seems to behaves actually, it will return all pages that have the "Tomato" label and a Page property macro where the word "Orange" is present in the page.

            No matter where Orange is written.

            David Lagacé added a comment - Hi ! We are facing a new challenge (bug??) using the page properties report :   Page properties report "Including text" filter is not working properly. It will return all pages containing the specified text even if it is outside of the specified parameters.   How to: Create 4 pages, each with a different title and each with the label "Tomato"   Page1, insert a page property macro, insert a 2 column 2 row table in the page property macro Define heading named:  heading1, heading2 Insert "Orange" under heading1 Insert "Citrus" under heading2 save page   Page2, insert a page property macro, insert a 2 column 2 row table in the page property macro Define headings named:  heading1, heading2 Insert "Citrus" under heading1 Insert "Orange" under heading2 save page   Page3, insert a page property macro, insert a 2 column 2 row table in the page property macro Define heading named:  heading1, heading2 Insert "Citrus" under heading1 Leave a blank value under heading2 Write "Orange" outside of the page property macro in the text section save page   Page4, Write "Orange" in text section save page   Create a page and insert a "Page property report" macro. In the "Labels" field, insert Tomato Add a "Including text" filter with the following filter: |heading1|Orange| Save macro. Save the page.   Desired behaviour: The page property report should return only page1   Current behaviour: The page property report returns pages 1-2-3.   The way it seems to behaves actually, it will return all pages that have the "Tomato" label and a Page property macro where the word "Orange" is present in the page. No matter where Orange is written.

            Hello, we have the bug currently new in our area. So far it has always worked but now the filter doesn't seem to work at all. Can we give this one back to development or do you have to create a new one @Swati Katta?

            Marco Bohmbach added a comment - Hello, we have the bug currently new in our area. So far it has always worked but now the filter doesn't seem to work at all. Can we give this one back to development or do you have to create a new one @Swati Katta?

            Richard Couture added a comment - - edited

            This issue is not fully resolved as it worked before. Prior to this bug, the Including Text filter in the properties report macro enabled the precise filtering of pages. Now, there seems to be no way of discerning between pages which have TEST FOR FILTER, TEST-FOR-FILTER, "TEST FOR FILTER", "TEST-FOR-FILTER", TEST, FOR or FILTER.

            I used this filter to find the page which had a dashed element in it (for example PROJECT-70505) and I would enter the filter text asPROJECT-70505 (not "PROJECT-70505" or another style). This would allow me to pull properties directly from the page which contains PROJECT-70505.

            Now, this fix seems to pick up every page that has PROJECT or 70505 in it and there is no way to specify exactly "PROJECT-70505", even with quotes.  

            Richard Couture added a comment - - edited This issue is not fully resolved as it worked before. Prior to this bug, the Including Text filter in the properties report macro enabled the precise filtering of pages. Now, there seems to be no way of discerning between pages which have TEST FOR FILTER, TEST-FOR-FILTER, "TEST FOR FILTER", "TEST-FOR-FILTER", TEST, FOR or FILTER. I used this filter to find the page which had a dashed element in it (for example PROJECT-70505) and I would enter the filter text asPROJECT-70505 (not "PROJECT-70505" or another style). This would allow me to pull properties directly from the page which contains PROJECT-70505. Now, this fix seems to pick up every page that has PROJECT or 70505 in it and there is no way to specify exactly "PROJECT-70505", even with quotes.  

            We have rolled out a fix for this about an hour ago. Please confirm things are working now

            Swati Katta added a comment - We have rolled out a fix for this about an hour ago. Please confirm things are working now

              skatta@atlassian.com Swati Katta
              halegra Helton A. (Inactive)
              Affected customers:
              8 This affects my team
              Watchers:
              18 Start watching this issue

                Created:
                Updated: