Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
queries Menu items

Click on the “Edit menu structure “ icon to open the menu structure

Bildschirmfoto 2024-04-25 um 16.31.07.png

Bildschirmfoto 2024-04-25 um 16.30.45.png

How to change the menu structure:

Add CQL

Add CQL search

To add a CQL search, activate the toggle in the CQL column

Click in the CQL link field. Start typing the CQL query to Add a valid field, value and operator to dynamically generate menu items dynamically that are based on the query’s result.Note
Links can be added in the same field (to the main menu item and its sub-items). .

For more information on CQL, check the Atlassian documentation or try out the use cases at the bottom of this page.

CQL.pngImage Added

Test your query results

Use the preview to test the query and view the results.

CQL results are always displayed in an overlay.

Bildschirmfoto 2025-02-18 um 15.47.59.pngImage Added

If you are unsure, what the CQL feature can do for you, here are a few suggestions what it can be used for:

Usecase

Query

Pages or Blogpost created by the current user in descending order

contributor = currentUser() AND type IN (‘page’, ‘blogpost’) order by created desc

Content that has been starred by the current user. This will show starred pages and spaces.

favourite = currentUser()

Content that is watched by the current user

watcher = currentUser()

Content that mentions the current user

mention = currentUser()

Find child pages of a parent page. In this example the query will show child pages of a parent page with the ID 123.

parent = 123

Find content created since the end of yesterday.

created > endOfDay("-1d")

Find content modified since the end of yesterday.

lastmodified > endOfDay("-1d")

Content watched by the current user that has been created since the end of the previous day, sorted by creation date in descending order.

watcher = currentUser() AND created > endOfDay("-1d") order by created desc

Have a look at the following documentation from Atlassian for more CQL inspiration: https://developer.atlassian.com/server/confluence/advanced-searching-using-cql/

Configuring Menus with CQL.gifImage Added