After moving a page with the Content by Label macro to a new space, no content for macro is rendered.

XMLWordPrintable

    • 1
    • Severity 3 - Minor

      Issue Summary

      After moving a page with the Content by Label macro to a new space, Macro displays, There is no content with the specified labels

      Steps to Reproduce

      1. Add labels to pages in a space. 
      2. Create a new page with the Content by Label macro. 
      3. In the Label filters, add the labels from step 1.
      4. Add the In space filter and select Current space. 
      5. Move the pages to a new space. 

      Expected Results

      Page with Content by Labels to render content in macro field.

      Actual Results

      No data is rendered in the fields
      Note: it is reproducible by adding similar labels from step 1 to pages in the new space. Then only move the page with the Content by Label macro. 

      http://localhost:8090/display/MOON/second+test+for+content+by+labels
      
      
      {"stateAt":"0.HqKxAYDN_QOE3tQtJxiFjQ.0","state":{"format":"type-tagged","value":[4,17,0,"body",1,[18,[4,17,0,"p",1,[18,[4,17,0,"br"]]],[4,17,0,"p",1,[18,[4,17,0,"img",1,[18],2,[3,"class","editor-inline-macro","src","/plugins/servlet/confluence/placeholder/macro?definition=e2NvbnRlbnRieWxhYmVsOmNxbD1sYWJlbCA9ICJwbGFucyIgYW5kIGxhYmVsID0gInN0cnVjdHVyZSIgYW5kIHNwYWNlID0gY3VycmVudFNwYWNlKCl9&locale=en_US&version=2","data-macro-name","contentbylabel","data-macro-parameters","cql=label \\= \"plans\" and label \\= \"structure\" and space \\= currentSpace()","data-macro-schema-version","3","data-macro-id","2d07c7eb-9529-440b-b0df-0ab121f44513"]]]]],2,[3,"data-title","second test for content by labels"]]}}
      
      
      Removing in space filter. 
      
      
      {"stateAt":"0.042UAiu4QvVS0xudgK5QhA.0","state":{"format":"type-tagged","value":[4,17,0,"body",1,[18,[4,17,0,"p",1,[18,[4,17,0,"br"]]],[4,17,0,"p",1,[18,[4,17,0,"img",1,[18],2,[3,"class","editor-inline-macro","src","/plugins/servlet/confluence/placeholder/macro?definition=e2NvbnRlbnRieWxhYmVsOmNxbD1sYWJlbCA9ICJwbGFucyIgYW5kIGxhYmVsID0gInN0cnVjdHVyZSJ9&locale=en_US&version=2","data-macro-name","contentbylabel","data-macro-parameters","cql=label \\= \"plans\" and label \\= \"structure\"","data-macro-schema-version","3","data-macro-id","11915a2a-d77e-44ef-b9f5-b93936606c7d"]]]]],2,[3,"data-title","second test for content by labels"]]}}
      

      Workaround

      1. Edit page with the macro.
      2. click Edit macro.
      3. Remove Current space from In space. Or
      4. Update the Current space for the name of the previous space. 
      5. click S*ave.* 

        1. ConfigCBLmacro.png
          91 kB
          Mark M
        2. ContentByLabel_atlassian-confluence.log.zip
          481 kB
          Mark M
        3. contentByLabels.har
          6.28 MB
          Mark M
        4. NoContent.png
          303 kB
          Mark M

              Assignee:
              Unassigned
              Reporter:
              Mark M (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: