Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-36546

CQL to return content WITHIN a Macro

    XMLWordPrintable

Details

    • We collect Confluence feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

    Description

      NOTE: This suggestion is for Confluence Server. Using Confluence Cloud? 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
          ss1.JPG
          55 kB
        2. ss2.JPG
          ss2.JPG
          67 kB
        3. ss3.JPG
          ss3.JPG
          72 kB
        4. ss4.JPG
          ss4.JPG
          58 kB

        Issue Links

          Activity

            People

              Unassigned Unassigned
              029477f0f6b8 Alexander Baggett
              Votes:
              3 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: