/
Common syntax error in CQL

Common syntax error in CQL


Space key is a reserve word

Click here for the list of reserve word

Steps to Reproduce

  1. Create a new space with space key “IS”

  2. Edit the home page and create a CQL Search Macro with the following CQL

    space = $$space.key$$
  3. You will get this error message

    Syntax error in CQL : space = IS

Fix

  1. Add quote-marks to the reserve words

    space = "$$space.key$$"

 

Related content

CQL Quick Search Macro
CQL Quick Search Macro
More like this
CQL Search Macro
Read with this
Convenient Search with placeholders
Convenient Search with placeholders
More like this
Useful scenarios with Canned Search for Confluence
Useful scenarios with Canned Search for Confluence
Read with this
Placeholder Variables for CQL
Placeholder Variables for CQL
More like this