You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| Priority | Set, add, or remove a priority level (Urgent, High, Medium, Low, None) |
162
+
| State | Move the work item to a specific state |
163
+
| Assignees | Add or remove assignees |
164
+
| Labels | Add, remove, or replace all labels |
165
+
| Start date | Set, update, or remove the start date |
166
+
| Due date | Set, update, or remove the due date |
167
+
| Cycle | Assign the work item to a cycle, move it to a different cycle, or remove it from its current cycle |
168
+
169
+
:::tip
170
+
When assigning a cycle, the cycle must belong to the work item's own project, and you cannot assign a work item to a cycle that has already ended. A work item can be in only one cycle at a time, so assigning a cycle moves the work item off any cycle it is currently in.
171
+
:::
167
172
168
173
#### Add comment
169
174
@@ -299,3 +304,5 @@ Some common things people use automations for.
299
304
-**Contextual reminders.** Surface the right information at the right moment - for example, post an internal comment with a checklist when a work item enters "Ready for QA," or flag missing information when a work item is created without an assignee.
300
305
301
306
-**Scheduled operations.** Run scripts on a timer to handle things that don't map to a single event - for example, sweep stale items weekly, sync data to an external tool nightly, or generate a status comment on open items every Monday morning.
307
+
308
+
-**Sprint assignment.** Put work items into the right cycle automatically - for example, add a work item to the current cycle when its state changes to "In Progress," or remove it from its cycle when it moves to "Backlog."
@@ -5,7 +5,7 @@ description: Filter work items using text-based queries with Plane Query Languag
5
5
6
6
# Plane Query Language (PQL) <Badgetype="info"text="Pro" />
7
7
8
-
Plane Query Language (PQL) lets you filter work items using text-based queries. Write structured expressions to quickly find exactly what you need.
8
+
Plane Query Language (PQL) lets you filter work items using text-based queries. Write structured expressions to quickly find exactly what you need, combine conditions with logic, call built-in functions, and sort and limit the results.
@@ -17,7 +17,7 @@ To switch to PQL mode, click **PQL** in the filter bar.
17
17
18
18
When you start typing in the PQL field:
19
19
20
-
1. A dropdown shows available **fields**
20
+
1. A dropdown shows available **fields** and **functions**
21
21
2. After selecting a field, you see **operators**
22
22
3. Then you choose or type **values**
23
23
4. Continue building your query using **AND** or **OR**
@@ -40,7 +40,7 @@ priority = High
40
40
41
41
This returns all work items where priority is High.
42
42
43
-
You can also combine multiple conditions using logical operators like `AND`and `OR`.
43
+
You can also combine multiple conditions using the logical operators `AND`, `OR`, and `NOT`.
44
44
45
45
**Using AND**
46
46
@@ -58,12 +58,33 @@ state = Todo OR state = In Progress
58
58
59
59
This returns work items that match either condition.
60
60
61
+
**Using NOT**
62
+
63
+
```
64
+
NOT hasNoAssignee()
65
+
```
66
+
67
+
This returns work items that do have an assignee.
68
+
61
69
**Combined:**
62
70
63
71
```
64
72
(priority = High AND state in (Backlog, In Progress, Todo)) OR (type in (Bug, Task, Improvements) AND assignee in (Ethan, Parker, Amanda))
65
73
```
66
74
75
+
## Sort and limit results
76
+
77
+
You can sort results and cap how many are returned by adding `ORDER BY` and `LIMIT` clauses to the end of a query.
78
+
79
+
```
80
+
priority = High ORDER BY dueDate ASC LIMIT 20
81
+
```
82
+
83
+
-**ORDER BY** sorts the results by a field. Add `ASC` (ascending, the default) or `DESC` (descending).
84
+
-**LIMIT** caps the number of results returned. The maximum is 1000.
85
+
86
+
Fields you can sort by: `priority`, `state`, `title`, `assignee`, `label`, `module`, `startDate`, `dueDate`, `createdAt`, `updatedAt`, `sortOrder`, `rank`.
87
+
67
88
## Save as view
68
89
69
90
Once you've built your query, click **Save view** to preserve it for quick access later. See [Views](/core-concepts/views) for details.
@@ -79,6 +100,40 @@ PQL is available wherever work items are listed:
79
100
- Teamspace work items
80
101
- Workspace views
81
102
103
+
The exact fields available in the editor depend on what is enabled for the project or workspace you are filtering. For example, `cycle` and `module` appear where those features are on, and custom properties appear when your work item types define them.
|`text`| The work item title **and** description together, in a single condition |
113
+
114
+
Use `text` when you want to match a term whether it appears in the title or the body of a work item. For example, `text ~ "login"` returns work items with "login" in the title or the description.
|`isOverdue`| Due date is past and state is open |
339
-
|`hasNoAssignee`| Work item has no assignee |
340
-
|`hasNoLabel`| Work item has no labels |
341
-
|`isTopLevel`| Not a sub-work item (has no parent) |
342
-
|`isSubWorkItem`| Is a sub-work item (has a parent) |
343
-
|`hasChildren`| Has at least one sub-work item |
344
-
|`hasStartAndDueDates`| Has both start and due dates |
397
+
PQL includes functions that cover common scenarios. Type `(` after a field, or start typing a function name, and the editor suggests the ones that fit.
398
+
399
+
### Predicate functions
400
+
401
+
These are standalone conditions that return true or false. Use them on their own (and combine with `NOT` to invert).
Copy file name to clipboardExpand all lines: docs/core-concepts/pages/editor-blocks.md
+26Lines changed: 26 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -96,6 +96,32 @@ Use the slash command to insert the layout you need:
96
96
97
97
Each column appears with an "Add content" placeholder where you can add any block type - text, lists, code, images, and more.
98
98
99
+
## Tabs <Badgetype="tip"text="Business" />
100
+
101
+
Tabs let you organize content into a tabbed block within a page, so related sections can share one space and readers switch between them instead of scrolling. You can lay tabs out horizontally (along the top) or vertically (down the side).
102
+
103
+
### Insert tabs
104
+
105
+
Type `/tabs` in the editor and choose one of:
106
+
107
+
-**Horizontal tabs** - the tab labels run along the top of the block.
108
+
-**Vertical tabs** - the tab labels run down the side of the block.
109
+
110
+
A new block is inserted with two tabs, named "Tab 1" and "Tab 2". Each tab holds its own content, and you can put any editor content inside a tab, including text, lists, images, and other blocks.
111
+
112
+
### Rename a tab
113
+
114
+
Double-click a tab label, type the new name, and press Enter (or click away) to save.
115
+
116
+
### Change the layout
117
+
118
+
While editing, use the layout controls on the block to switch between horizontal and vertical orientation at any time. Your tabs and their content are preserved.
119
+
120
+
### Notes
121
+
122
+
- Tabs cannot be nested. You cannot insert a tabs block inside another tabs block.
123
+
- In read-only or published pages, readers can switch between tabs but cannot add, rename, delete, or edit them.
124
+
99
125
## Video <Badgetype="info"text="Pro" />
100
126
101
127
Embeds video content directly into your pages for rich multimedia documentation.
0 commit comments