Uploaded image for project: 'Confluence Cloud'
  1. Confluence Cloud
  2. CONFCLOUD-36546

CQL to return content WITHIN a Macro

    XMLWordPrintable

Details

    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    Description

      NOTE: This suggestion is for Confluence Cloud. Using Confluence Server? See the corresponding suggestion.

      I see from the related issue that you did add CQL, but I was talking about using it Inside of a Macro to return CONTENT, not a just a list of pages from the search bar. I want to return content from pages by using CQL parameters. This would be useful.

      You could match on labels, creation time, space, attachments, whether it has children, etc.

      You could match on some of the attributes here:
      https://developer.atlassian.com/static/javadoc/confluence/latest/reference/com/atlassian/confluence/pages/Page.html

      I ran into the need when I wanted to include all of the pages of the children of a parent essentially the cross between the page include and the children include macros. However there were so many pages it would be very tedious to do so with page includes.

      I started writing a macro for it, but I don't think we should need to make our own macros to do something so simple. The Macro I was writing nearly works, but it doesn't include the macros that are on the pages of the children, so all panels and other stuff are lost essentially.

      Even that however, was a workaround for what I really needed.

      What I really needed was to include the content of all children of a certain parents who matched a certain creation date. So I could have 1 dynamic page, whose content changed day to day based on which pages matched the creation date parameters. A shift log that would always have content from a time-span of 24-0 hours ago.

      Now if CQL worked with the page include macro, then that would solve my issue.

      Attachments

        1. ss1.JPG
          55 kB
        2. ss2.JPG
          67 kB
        3. ss3.JPG
          72 kB
        4. ss4.JPG
          58 kB

        Issue Links

          Activity

            People

              Unassigned Unassigned
              029477f0f6b8 Alexander Baggett
              Votes:
              34 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated: