diff --git a/doc/user/glql/_index.md b/doc/user/glql/_index.md
index 4576c4acc95a27a3c0b429a9c411aa4b244ef3e2..c2792c88cc13d3f833bdd4b1221726a328873826 100644
--- a/doc/user/glql/_index.md
+++ b/doc/user/glql/_index.md
@@ -127,7 +127,7 @@ For example:
 display: table
 fields: title, state, health, epic, milestone, weight, updated
 limit: 5
-query: project = "gitlab-org/gitlab" AND assignee = currentUser() AND opened = true
+query: project = "gitlab-org/gitlab" AND assignee = currentUser() AND state = opened
 ```
 ````
 
@@ -156,7 +156,7 @@ project as a list, displaying fields `title`, `health`, and `due`:
 display: list
 fields: title, health, due
 limit: 5
-query: project = "gitlab-org/gitlab" AND assignee = currentUser() AND opened = true
+query: project = "gitlab-org/gitlab" AND assignee = currentUser() AND state = opened
 ```
 ````
 
diff --git a/doc/user/glql/functions.md b/doc/user/glql/functions.md
index 49b484995fda12c82ff4bcf2eb0cf70581ec80e2..7efc793c5c4d561121ba591fdb6bf3b99c455029 100644
--- a/doc/user/glql/functions.md
+++ b/doc/user/glql/functions.md
@@ -146,6 +146,6 @@ To include the `labels` function in a GLQL view:
 display: list
 fields: title, health, due, labels("workflow::*"), labels
 limit: 5
-query: project = "gitlab-org/gitlab" AND assignee = currentUser() AND opened = true
+query: project = "gitlab-org/gitlab" AND assignee = currentUser() AND state = opened
 ```
 ````